gpt4 book ai didi

node.js - npm 错误!拒绝删除/编码 EEXIST

转载 作者:IT老高 更新时间:2023-10-28 21:57:00 24 4
gpt4 key购买 nike

我只是在运行一个简单的 npm install,我得到了这个错误。

npm ERR! path /Users/jasonazoulay/Desktop/fabrick.io/delegation/node_modules/@angular/cli/node_modules/webpack/node_modules/yargs/node_modules/os-locale/node_modules/execa/node_modules/cross-spawn/node_modules/.bin/which
npm ERR! code EEXIST
npm ERR! Refusing to delete /Users/jasonazoulay/Desktop/fabrick.io/delegation/node_modules/@angular/cli/node_modules/webpack/node_modules/yargs/node_modules/os-locale/node_modules/execa/node_modules/cross-spawn/node_modules/.bin/which: is outside /Users/jasonazoulay/Desktop/fabrick.io/delegation/node_modules/@angular/cli/node_modules/webpack/node_modules/yargs/node_modules/os-locale/node_modules/execa/node_modules/cross-spawn/node_modules/which and not a link
npm ERR! File exists: /Users/jasonazoulay/Desktop/fabrick.io/delegation/node_modules/@angular/cli/node_modules/webpack/node_modules/yargs/node_modules/os-locale/node_modules/execa/node_modules/cross-spawn/node_modules/.bin/which
npm ERR! Move it away, and try again

这是我第一次收到此错误,我不知道该怎么办。

最佳答案

步骤

  1. 彻底删除node_modules目录。
  2. 再次运行 npm install

这应该会有所帮助。

关于node.js - npm 错误!拒绝删除/编码 EEXIST,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46541371/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com