使用npx create-react-app 新创建项目,启动失败
missing script: start
at runScript (/usr/local/lib/node_modules/npm/lib/run-script.js:54:11)
尝试使用webstrom新建react项目,出现如下提示
A template was not provided. This is likely because you're using an outdated version of create-react-app.
Please note that global installs of create-react-app are no longer supported.
You can fix this by running npm uninstall -g create-react-app or yarn global remove create-react-app before using create-react-app again.
Done
问题已经很明显了,create-react-app 版本导致的,卸载后重新安装create-react-app,再次新建项目就ok了~