当前位置:   article > 正文

npm install 报错没有权限:The operation was rejected by your operating system

the operation was rejected by your operating system. npm err! it's possible

问题描述

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.
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7

在这里插入图片描述

问题原因

npm 版本高

解决方式

删除 package-lock.json 文件
执行 npm install --no-optional 成功

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/菜鸟追梦旅行/article/detail/275827
推荐阅读
相关标签
  

闽ICP备14008679号