安装反应 JS 时出错,并显示消息:未知命令:"create-react-app"



我在尝试用npm安装react JS时遇到了这个问题。

这是按摩:

Unknown command: "create-react-app"
To see a list of supported npm commands, run:
npm help

我该怎么办?

使用npx create-react-app appname

React文档https://reactjs.org/docs/create-a-new-react-app.html

create-react-app已过时,您必须使用旧文档或教程好运

创建react应用程序时,请使用npx而不是npm。

npx create-react-app my-app

相关内容

最新更新