如何使用create-react-app创建一个新项目

时间:2019-08-21 16:45:37

标签: javascript reactjs webpack create-react-app

我新开始使用Mac OS。当使用create-react-app创建一个新项目时,出现了一个错误:

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! recipe@0.1.0 start: `react-scripts start`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the recipe@0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/macbook/.npm/_logs/2019-08-21T16_25_25_607Z-debug.log

1 个答案:

答案 0 :(得分:0)

您需要运行:

npm install

在您可以运行之前,

npm start