gh-pages在“运行部署”时失败

时间:2019-01-13 12:49:53

标签: reactjs npm github-pages

GitHub Pages部署失败,我不知道为什么。

已经删除了node_modules并重新安装了它们。

这是终端的输出:

> lvl-counter@0.1.0 deploy /Users/9to5dev/github/lvl-counter
> gh-pages -d build

sh: gh-pages: command not found
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! lvl-counter@0.1.0 deploy: `gh-pages -d build`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the lvl-counter@0.1.0 deploy script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

    enter code here

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/9to5dev/.npm/_logs/2019-01-13T12_42_36_512Z-debug.log

谢谢您的帮助!

1 个答案:

答案 0 :(得分:0)

您尝试安装gh页吗?

npm install gh-pages