Vue安装CLI插件syscall重命名错误

时间:2018-07-13 09:52:44

标签: node.js npm vue.js

我正在尝试构建我的第一个Vue应用,当我尝试使用vue create myApp命令安装CLI插件时发生了我的第一个错误

我得到的错误如下

npm ERR! path E:\VueApps\the-new-app\node_modules\clap
 npm ERR! code EPERM npm ERR! errno -4048 npm ERR! syscall rename npm ERR! Error: EPERM: operation not permitted, rename 'E:\VueApps\the-new-app\node_modules\clap' -> 'E:\VueApps\the-new-app\node_modules\.clap.DELETE' npm ERR!  { Error: EPERM: operation not permitted, rename 'E:\VueApps\the-new-app\node_modules\clap' -> 'E:\VueApps\the-new-app\node_modules\.clap.DELETE' npm ERR!   cause: npm ERR!    { Error: EPERM: operation not permitted, rename 'E:\VueApps\the-new-app\node_modules\clap' -> 'E:\VueApps\the-new-app\node_modules\.clap.DELETE' npm ERR!      errno: -4048, npm ERR!      code: 'EPERM', npm ERR!      syscall: 'rename', npm ERR!      path: 'E:\\VueApps\\the-new-app\\node_modules\\clap', npm ERR!      dest: 'E:\\VueApps\\the-new-app\\node_modules\\.clap.DELETE' }, npm ERR!   stack: 'Error: EPERM: operation not permitted, rename \'E:\\VueApps\\the-new-app\\node_modules\\clap\' -> \'E:\\VueApps\\the-new-app\\node_modules\\.clap.DELETE\'', npm ERR!  errno: -4048, npm ERR!   code: 'EPERM', npm ERR!   syscall: 'rename', npm ERR!   path: 'E:\\VueApps\\the-new-app\\node_modules\\clap', npm ERR!   dest: 'E:\\VueApps\\the-new-app\\node_modules\\.clap.DELETE', npm ERR!   parent: 'the-new-app' } npm ERR! npm ERR! Please try running this command again as root/Administrator. npm ERR! A complete log of this run can be found in: npm ERR!     C:\Users\moswi\AppData\Roaming\npm-cache\_logs\2018-07-13T10_29_54_938Z-debug.log ERROR  command failed: npm install --loglevel error

0 个答案:

没有答案