NodeJS 如何在创建reactjs应用程序时清除EEXIST错误

3yhwsihp  于 2022-11-29  发布在  Node.js
关注(0)|答案(1)|浏览(129)

我是新的React。我正在尝试创建一个React应用程序。我面临的问题,而创建一个React应用程序。请帮助我。

npm ERR! code EEXIST
npm ERR! path C:\Users\MY PC\AppData\Roaming\npm\node_modules\create-react-app\index.js
npm ERR! dest C:\Users\MY PC\AppData\Roaming\npm\create-react-app.cmd
npm ERR! EEXIST: file already exists, cmd shim 'C:\Users\MY PC\AppData\Roaming\npm\node_modules\create-react-app\index.js' -> 'C:\Users\MY PC\AppData\Roaming\npm\create-react-app.cmd'
npm ERR! File exists: C:\Users\MY PC\AppData\Roaming\npm\create-react-app.cmd
npm ERR! Remove the existing file and try again, or run npm
npm ERR! with --force to overwrite files recklessly.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\MY PC\AppData\Roaming\npm-cache\_logs\2020-05-20T08_41_05_617Z-debug.log
ulydmbyx

ulydmbyx1#

完全删除node_modules目录。再次运行npm install

相关问题