简体   繁体   English

npm install of angular 抛出错误:ENOTEMPTY

[英]npm install of angular throws error: ENOTEMPTY

When I execute npm install I get the following error:当我执行 npm install 时,出现以下错误:

npm ERR! code ENOTEMPTY
npm ERR! syscall rmdir
npm ERR! path /home/vagrant/development/wpp/app-web/wpp.web2/node_modules/npm/node_modules/.debug.DELETE/node_modules
npm ERR! errno -39
npm ERR! ENOTEMPTY: directory not empty, rmdir '/home/vagrant/development/wpp/app-web/wpp.web2/node_modules/npm/node_modules/.debug.DELETE/node_modules'

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/vagrant/.npm/_logs/2020-10-29T18_38_17_165Z-debug.log

What I already tried to resolve this:我已经尝试解决这个问题:

  • delete node_modules folder删除 node_modules 文件夹
  • delete only npm folder inside node_modules仅删除 node_modules 中的 npm 文件夹
  • delete ~/.npm file删除 ~/.npm 文件
  • delete package-lock.json删除 package-lock.json
  • run npm update运行 npm 更新
  • npm cache clear --force npm 缓存清除 --force
  • npm install --save express body-parser --force (even though I don't know what it does) npm install --save express body-parser --force (即使我不知道它是做什么的)
  • sudo npm install须藤 npm 安装
  • various combinations of the above以上的各种组合

I'm running npm version 6.14.8 and node version 12.19.0我正在运行 npm 版本 6.14.8 和节点版本 12.19.0

What can I do to resolve this?我能做些什么来解决这个问题?

Turns out I was stupid: The folder was shared with my windows-system and that created some weird side-effect.原来我很愚蠢:该文件夹与我的 Windows 系统共享,这产生了一些奇怪的副作用。 Using another location solved it.使用另一个位置解决了它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM