我刚开始使用 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
最佳答案
您需要运行:
npm install
在运行之前:
npm start
关于javascript - 如何使用 create-react-app 创建新项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57596061/