maven npm |错误!代码EEXIST|拒绝删除|档案已存在|将其移开,然后重试

wi3ka0sx  于 2022-11-22  发布在  Maven
关注(0)|答案(1)|浏览(181)

当执行npm时,我得到下一个错误消息:

[ERROR] 
[ERROR] npm ERR! path C:\Desarrollo\DragoMED.web\node_modules\.bin\webpack-dev-server.cmd
[ERROR] npm ERR! code EEXIST
[ERROR] npm ERR! Refusing to delete C:\Desarrollo\DragoMED.web\node_modules\.bin\webpack-dev-server.cmd: is outside C:\Desarrollo\DragoMED.web\node_modules\webpack-dev-server and not a link[ERROR] npm ERR! File exists: C:\Desarrollo\DragoMED.web\node_modules\.bin\webpack-dev-server.cmd
[ERROR] npm ERR! Move it away, and try again.
[ERROR] 
[ERROR] npm ERR! A complete log of this run can be found in:
[ERROR] npm ERR!     C:\Users\spoveda2\AppData\Roaming\npm-cache\_logs\2022-11-18T16_17_00_119Z-debug.log
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10:54 min
[INFO] Finished at: 2022-11-18T16:17:00Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.6:npm (npm install) on project bdm: Failed to run task: 'npm install' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

我不知道该怎么做...我已经运行了npm i后,删除节点模块和package-lock.json,但它不为我工作也...

zsbz8rwp

zsbz8rwp1#

尝试查看AppData文件夹下的Roaming文件夹(您可以直接键入:%应用程序数据%

  • 然后删除npm-cache文件夹
  • 之后删除节点模块并运行npm i

相关问题