我在 Sandbox 上创建了一个现有的 React 项目,现在已下载,我正在尝试在 Github 页面上打开它。我按照以下步骤在本地主机中打开它:
在终端
一切正常并开始。然后我将它与 Github 连接起来的步骤是 - 按照 this guide:
在 9 点,我运行 npm run deploy
,它抛出以下错误:
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! using-pre-built-react-components-completed@1.0.0 build: `react-scripts build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the using-pre-built-react-components-completed@1.0.0 build 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/MacBookAir/.npm/_logs/2021-06-23T13_14_26_506Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! using-pre-built-react-components-completed@1.0.0 predeploy: `npm run build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the using-pre-built-react-components-completed@1.0.0 predeploy 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/MacBookAir/.npm/_logs/2021-06-23T13_14_26_541Z-debug.log
我做错了什么?