1、npm start报missing script:start错误解决办法
其中一个原因:检查当前所在目录,要切换到项目工程目录。
PS D:\Code\React\React-Router-demo> npm start
npm ERR! missing script: start
npm ERR! A complete log of this run can be found in:
npm ERR! D:\nodejs\node_cache\_logs\2021-04-23T14_11_05_274Z-debug.log
PS D:\Code\React\React-Router-demo\router-demo> npm start
Compiled successfully!
You can now view router-demo in the browser.
Local: http://localhost:3000
On Your Network: http://192.168.1.105:3000
Note that the development build is not optimized.
To create a production build, use npm run build.