npm ERR! path D:dataCenterbi-frontend-basenode_modulesnycnode_modulesarchynpm-shrinkwrap.json
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall open
npm ERR! Error: EPERM: operation not permitted, open 'D:dataCenterbi-frontend-basenode_modulesnycnode_modulesarchynpm-shrinkwrap.json'
npm ERR!  { [Error: EPERM: operation not permitted, open 'D:dataCenterbi-frontend-basenode_modulesnycnode_modulesarchynpm-shrinkwrap.json']
npm ERR!   cause:
npm ERR!    { Error: EPERM: operation not permitted, open 'D:dataCenterbi-frontend-basenode_modulesnycnode_modulesarchynpm-shrinkwrap.json'
npm ERR!      errno: -4048,
npm ERR!      code: 'EPERM',
npm ERR!      syscall: 'open',
npm ERR!      path:
npm ERR!       'D:\dataCenter\bi-frontend-base\node_modules\nyc\node_modules\archy\npm-shrinkwrap.json' },
npm ERR!   isOperational: true,
npm ERR!   stack:
npm ERR!    'Error: EPERM: operation not permitted, open 'D:\dataCenter\bi-frontend-base\node_modules\nyc\node_modules\archy\npm-shrinkwrap.json'',
npm ERR!   errno: -4048,
npm ERR!   code: 'EPERM',
npm ERR!   syscall: 'open',
npm ERR!   path:
npm ERR!    'D:\dataCenter\bi-frontend-base\node_modules\nyc\node_modules\archy\npm-shrinkwrap.json',
npm ERR!   parent: 'nyc' }
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:MyConfigurationzr02718AppDataRoamingnpm-cache_logs2019-03-19T07_19_58_886Z-debug.log

删除当前用户目录下面的.npmrc文件重新安装即可。这个文件不一定在哪里,在当前用户目录下面,可能在C盘也可能再D盘

本文固定链接: http://www.js-code.com/node-js/node-js_34119.html