npm错误,无法在Windows 10中安装软件包

时间:2018-09-03 15:58:05

标签: node.js npm

npm ERR! path xx\node_modules\.staging\antd- 
b20edf17\dist\antd-with-locales.min.js.map
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall unlink
npm ERR! Error: EPERM: operation not permitted, unlink 
         'xx\node_modules\.staging\antd- 
b20edf17\dist\antd-with-locales.min.js.map'
npm ERR!  { Error: EPERM: operation not permitted, unlink 
          'xx\node_modules\.staging\antd- 
b20edf17\dist\antd-with-locales.min.js.map'
npm ERR!   cause:
npm ERR!    { Error: EPERM: operation not permitted, unlink 
         'xx\node_modules\.staging\antd-b20edf17\dist\antd-with- 
         locales.min.js.map'
npm ERR!      errno: -4048,
npm ERR!      code: 'EPERM',
npm ERR!      syscall: 'unlink',
npm ERR!      path: 'xx\\node_modules\\.staging\\antd-b20edf17\\dist\\antd- 
              with- locales.min.js.map' },
npm ERR!   stack: 'Error: EPERM: operation not permitted, unlink 
           \'xx\\node_modules\\.staging\\antd- b20edf17\\dist\\antd-with- 
           locales.min.js.map\'',
npm ERR!   errno: -4048,
npm ERR!   code: 'EPERM',
npm ERR!   syscall: 'unlink',
npm ERR!   path: 'xx\\node_modules\\.staging\\antd-b20edf17\\dist\\antd-with- 
locales.min.js.map',
npm ERR!   parent: 'web-admin' }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It's possible that the file was already in use (by a text editor or 
         antivirus),
npm ERR! or that you lack permissions to access it.
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double- 
         check the
npm ERR! permissions of the file and its containing directories, or try 
         running
npm ERR! the command again as root/Administrator (though this is not 
         recommended).

npm ERR! A complete log of this run can be found in:
npm ERR!     D:\nodejs\node_cache\_logs\2018-09-03T15_14_15_333Z-debug.log

我无法在获得管理员许可的情况下进行安装。使用install时,我会卡在中间并且永远不会加载。我的NPM是6.4.0的最新版本,并且我已进行全局安装,为什么?谁能帮我看看吗?谢谢

0 个答案:

没有答案