简体   繁体   English

无法使用“create-react-app”nvm 创建反应应用程序与 npm 配置不兼容

[英]unable to create a react app using “create-react-app” nvm is not compatible with the npm config

recently updated node and yarn But now I get an error when running create-react app package.json is generated then deleted please help最近更新了节点和纱线但是现在我在运行 create-react app package.json 时出现错误然后删除请帮助

Tried reinstalling node and npm even yarn but still same outcome please help尝试重新安装节点和 npm 甚至纱线但仍然相同的结果请帮助

Try following.尝试跟随。

  • npm rm -g create-react-app npm rm -g create-react-app
  • npm install -g create-react-app npm install -g create-react-app
  • npx create-react-app my-app npx 创建反应应用程序我的应用程序

here is a thread that may help too.是一个可能也有帮助的线程。

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

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