查看reactjs上的问题:

在这里您可以看到问题所在,请帮助我解决此问题
appdata -> roaming -> npm ->

->文件夹漫游

->然后npm文件夹

npm文件夹中的->

问题是:
D:\ashish>create-react-app shoppingcart-ashish
Creating a new React app in D:\ashish\shoppingcart-ashish.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...
npm ERR! cb() never called!
npm ERR! This is an error with npm itself. Please report this error at:
npm ERR! <https://npm.community>
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Ashish\AppData\Roaming\npm-cache\_logs\2021-05-02T08_46_41_747Z-debug.log
Aborting installation.
npm install --save --save-exact --loglevel error react react-dom react-scripts cra-template has failed.
Deleting generated file... package.json
Deleting shoppingcart-ashish/ from D:\ashish
Done.发布于 2021-05-02 17:42:06
我已将npm重新安装为最新版本( 16.0.0.并从以前的节点js和npm文件中删除所有文件..
从C:\Users\Ashish\AppData\Roaming\npm
在我的例子中,AppData是隐藏的,现在工作得很好,谢谢!
https://stackoverflow.com/questions/67354327
复制相似问题