hcg1023 2019-03-03 20:53 采纳率: 50%
浏览 9548
已采纳

使用npm下载任何文件都报错,报错如下

D:\cumputer\Node_js\day_3_3>npm install --save jquery
npm WARN tarball tarball data for jquery@latest (sha1-lYzinoHJeQ8xvneS311NlfxX+8o=) seems to be corrupted. Trying one more time.
npm WARN cumputer@1.0.0 No description
npm WARN cumputer@1.0.0 No repository field.

npm ERR! path D:\cumputer\node_modules.staging\jquery-9ce1137a\dist\jquery.js
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall unlink
npm ERR! Error: EPERM: operation not permitted, unlink 'D:\cumputer\node_modules.staging\jquery-9ce1137a\dist\jquery.js'
npm ERR! { [Error: EPERM: operation not permitted, unlink 'D:\cumputer\node_modules.staging\jquery-9ce1137a\dist\jquery.js']
npm ERR! cause:
npm ERR! { Error: EPERM: operation not permitted, unlink 'D:\cumputer\node_modules.staging\jquery-9ce1137a\dist\jquery.js'
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'unlink',
npm ERR! path:
npm ERR! 'D:\cumputer\node_modules\.staging\jquery-9ce1137a\dist\jquery.js' },
npm ERR! stack:
npm ERR! 'Error: EPERM: operation not permitted, unlink \'D:\cumputer\node_modules\.staging\jquery-9ce1137a\dist\jquery.js
\'',
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'unlink',
npm ERR! path:
npm ERR! 'D:\cumputer\node_modules\.staging\jquery-9ce1137a\dist\jquery.js',
npm ERR! parent: 'cumputer' }
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! C:\Users\22938\AppData\Roaming\npm-cache_logs\2019-03-03T12_51_08_378Z-debug.log

  • 写回答

1条回答 默认 最新

  • 关注

    你试试这两个命令
    npm config rm proxy
    npm config rm https-proxy
    希望对你有帮助

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 R语言单细胞测序 对seurat对象进行标准化时出现问题
  • ¥15 Anaconda navigator updateor一直更新
  • ¥15 请问如何在matlab里使用raven工具?
  • ¥100 关于ios手游充值到一定金额,再点充值提示公众号的问题。
  • ¥15 求一个stm32串口控制程序
  • ¥20 Windows 驱动开发版本疑问相关
  • ¥15 MAC 未能打开磁盘映像
  • ¥15 fastcap使用,二维导体输入问题
  • ¥15 hosts修改后不能访问
  • ¥15 关于化学反应速率C++编译问题/FLUENT