在将npm ng2-cookies安装到角度项目中时遇到此错误

时间:2018-08-25 08:44:59

标签: npm

λnpm安装ng2-cookies npm ERR!路径C:\ Users \ cw \ Desktop \ Project \ Project-1(实时待办清单)\ frontend \ node_modules.staging npm ERR!代码EPERM npm ERR!埃尔诺-4048 npm ERR!系统调用取消链接 npm ERR!错误:EPERM:不允许操作,请取消链接“ C:\ Users \ cw \ Desktop \ Project \ Project-1(实时待办事项列表)\ frontend \ node_modules.staging” npm ERR! {错误:EPERM:不允许进行操作,请取消链接“ C:\ Users \ cw \ Desktop \ Project \ Project-1(实时待办事项列表)\ frontend \ node_modules.staging” npm ERR!堆栈:'错误:EPERM:不允许操作,取消链接\'C:\ Users \ cw \ Desktop \ Project \ Project-1(实时列表)\ frontend \ node_modules \ .staging \'', npm ERR! errno:-4048, npm ERR!代码:“ EPERM”, npm ERR! syscall:'unlink', npm ERR!路径:“ C:\ Users \ cw \ Desktop \ Project \ Project-1(实时待办事项列表)\ frontend \ node_modules \ .staging'} npm ERR! npm ERR!请尝试以root /管理员身份再次运行此命令。

npm错误!可以在以下位置找到此运行的完整日志: npm ERR! C:\ Users \ cw \ AppData \ Roaming \ npm-cache_logs \ 2018-08-25T08_40_20_017Z-debug.log

λ npm install ng2-cookies
npm ERR! path C:\Users\cw\Desktop\Project\Project-1 (Real-time-to-do-list)\frontend\node_modules\.staging
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall unlink
npm ERR! Error: EPERM: operation not permitted, unlink 'C:\Users\cw\Desktop\Project\Project-1 (Real-time-to-do-list)\frontend\node_modules\.staging'
npm ERR!  { Error: EPERM: operation not permitted, unlink 'C:\Users\cw\Desktop\Project\Project-1 (Real-time-to-do-list)\frontend\node_modules\.staging'
npm ERR!   stack: 'Error: EPERM: operation not permitted, unlink \'C:\\Users\\cw\\Desktop\\Project\\Project-1 (Real-time-to-do-list)\\frontend\\node_modules\\.staging\'',
npm ERR!   errno: -4048,
npm ERR!   code: 'EPERM',
npm ERR!   syscall: 'unlink',
npm ERR!   path: 'C:\\Users\\cw\\Desktop\\Project\\Project-1 (Real-time-to-do-list)\\frontend\\node_modules\\.staging' }
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\cw\AppData\Roaming\npm-cache\_logs\2018-08-25T08_40_20_017Z-debug.log

当我以root管理员的身份再次运行此命令时,它再次显示这些错误

0 个答案:

没有答案