λnpm安装ng2-cookies npm ERR!路径C:\ Users \ cw \ Desktop \ Project \ Project-1(实时待办事项列表)\ frontend \ node_modules.staging npm ERR!代码EPERM npm ERR! errno -4048 npm ERR!系统调用unlink 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! stack:'错误:EPERM:不允许操作,取消链接'C:\ Users \ cw \ Desktop \ Project \ Project-1(实时待办事项列表)\ frontend \ node_modules \ .staging '',错误的ERR!错误:-4048,npm ERR!代码:'EPERM',npm ERR!系统调用:'unlink',npm ERR!路径:'C:\ Users \ cw \ Desktop \ Project \ Project-1(实时待办事项列表)\ frontend \ node_modules \ .staging'} npm ERR!错误的ERR!请尝试以root / Administrator身份再次运行此命令 .

错误的ERR!可以在以下位置找到此运行的完整日志:npm ERR! C:\ Users \用户CW \应用程序数据\漫游\ 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管理员身份运行此命令时,它再次显示这些错误