我是React的新手。我正在尝试创建一个React应用。创建React-App时遇到问题。请帮助我。
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
答案 0 :(得分:0)
删除C:\Users\MY PC\AppData\Roaming\npm\
文件夹中的文件。