美文网首页
npm install报错---The operation wa

npm install报错---The operation wa

作者: 沉默紀哖呮肯伱酔 | 来源:发表于2020-06-19 17:50 被阅读0次
    npm ERR! code EPERM
    npm ERR! syscall unlink
    npm ERR! path E:\git\app-admin-frontendTW\node_modules\.staging\antd-6cdc5363\dist\antd-with-locales.min.js
    npm ERR! errno -4048
    npm ERR! Error: EPERM: operation not permitted, unlink 'E:\git\app-admin-frontendTW\node_modules\.staging\antd-6cdc5363\dist\antd-with-locales.min.js'
    npm ERR!  [OperationalError: EPERM: operation not permitted, unlink 'E:\git\app-admin-frontendTW\node_modules\.staging\antd-6cdc5363\dist\antd-with-locales.min.js'] {
    npm ERR!   cause: [Error: EPERM: operation not permitted, unlink 'E:\git\app-admin-frontendTW\node_modules\.staging\antd-6cdc5363\dist\antd-with-locales.min.js'] {
    npm ERR!     errno: -4048,
    npm ERR!     code: 'EPERM',
    npm ERR!     syscall: 'unlink',
    npm ERR!     path: 'E:\\git\\app-admin-frontendTW\\node_modules\\.staging\\antd-6cdc5363\\dist\\antd-with-locales.min.js'
    npm ERR!   },
    npm ERR!   stack: "Error: EPERM: operation not permitted, unlink 'E:\\git\\app-admin-frontendTW\\node_modules\\.staging\\antd-6cdc5363\\dist\\antd-with-locales.min.js'",
    npm ERR!   errno: -4048,
    npm ERR!   code: 'EPERM',
    npm ERR!   syscall: 'unlink',
    npm ERR!   path: 'E:\\git\\app-admin-frontendTW\\node_modules\\.staging\\antd-6cdc5363\\dist\\antd-with-locales.min.js',
    npm ERR!   parent: 'app-admin-frontendTW'
    npm ERR! }
    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.
    
    image.png

    解决办法:删除本机电脑用户目录下的.npmrc文件
    eg: 删除 C:\Users\username\.npmrc

    相关文章

      网友评论

          本文标题:npm install报错---The operation wa

          本文链接:https://www.haomeiwen.com/subject/ncrbxktx.html