我是新的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
1条答案
按热度按时间ulydmbyx1#
完全删除node_modules目录。再次运行
npm install
。