[我正在尝试在GitHub页面上部署我的更改,但不幸的是,在执行npm run deploy
时出现了以下错误。
> [email protected] deploy /home/yaroslav/Desktop/lab/2048
> gh-pages -b master -d build
ENOENT: no such file or directory, stat '/home/yaroslav/Desktop/lab/2048/build'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] deploy: `gh-pages -b master -d build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] deploy 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! /home/yaroslav/.npm/_logs/2020-05-09T12_02_20_500Z-debug.log
如果depoloy
的命令为gh-pages -d build
,则出现相同的错误。
因此,我没有找到任何针对此特定问题的答案,只是通过几次单击使用netlify部署了我的应用程序。