[英]I'm not able to create react app by “create-react-app”
在控制台上获取这个
> core-js@2.6.11 postinstall G:\mernbootcamp\testfront\my-app\node_modules\babel-runtime\node_modules\core-js
> node -e "try{require('./postinstall')}catch(e){}"
Aborting installation.
npm install --save --save-exact --loglevel error react react-dom react-scripts cra-template has failed.
Deleting generated file... node_modules
Deleting generated file... package.json
Deleting my-app/ from G:\mernbootcamp\testfront
Done.
问题是:现在我们无法在全球范围内创建反应应用程序。 您可能安装了一些旧版本。
先卸载
npm uninstall -g create-react-app
然后导航到您要在其中创建反应应用程序的文件夹。 并编写以下命令:
npx create-react-app my-app
我已经找到了我的问题的解决方案,如果您遇到与我相同的问题,请在关闭病毒保护后尝试创建 react 应用程序,我尝试了这个,它对我有用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.