我在尝试用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