在学习react的时候使用了,蚂蚁金服的Ant design的脚手架工具dva-cli,在运行npm start时报missing script:start错误:

npm ERR! node v8.0.0
npm ERR! npm  v4.0.3

npm ERR! missing script: start
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\Administrator\Desktop\test-react\npm-debug.log

进入项目目录再运行npm start就可以了。

发表评论

电子邮件地址不会被公开。 必填项已用*标注

Scroll Up