[英]'cocos' is not recognized as an internal or external command, operable program or batch file
[英]'create-react-app' is not recognized as an internal or external command or operable program or batch file
我试图创建 React 项目但 create-react-app my-app 命令不起作用..请帮助
这是命令
npm install -g create-react-app
创建反应应用程序我的应用程序
为什么截图是 2017 年 12 月 25 日的。你需要重新安装最新版本的 node 并尝试最新版本的 React。
npm install -g npm-windows-upgrade
npm-windows-upgrade
然后做
npm install -g create-react-app
create-react-app my-app
首先检查您的节点版本。 如果您的节点版本为 8 或更高,则使用 8
'npx create-react-app my-app'在上面的版本中我们只需要改变一个词就是npx就不需要做其他的事情了。 我希望这会帮助你
可能是您的 npm 不在您的环境变量路径中。 请试试
npx create-react-app my-app
检查这个并运行这个:
npm install create-react-app
npx create-react-app my
也许您可以尝试react-native init
而不是create-react-app
。 像react-native init my-app
你可以试试
npx create-react-app bla-bla
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.