繁体   English   中英

使用 cmd 通过 create-react-app 创建新应用程序以进行反应时发生错误

[英]Error occures while creating new app for react by create-react-app using cmd

请参阅 reactjs 上的问题:

图片来源点击这里查看reactjs上的问题

在这里你可以看到什么问题请帮我解决这个问题

appdata -> roaming -> npm ->

点击获取文件夹appdata

-> 文件夹漫游

点击 getoaming 文件夹漫游

-> 然后是 npm 文件夹

然后是 npm 文件夹 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.

我已将 npm 重新安装为最新版本(16.0.0. 并从以前的节点 js 和 npm 文件中删除所有文件。

来自 C:\Users\Ashish\AppData\Roaming\npm

在我的情况下,AppData 是隐藏的,现在可以正常工作了谢谢!

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM