gh-pages在`run deploy`上失败

问题描述 投票:0回答:1

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

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

这是终端的输出:

> [email protected] 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! [email protected] deploy: `gh-pages -d build`
npm ERR! spawn ENOENT
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.

    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

谢谢您的帮助!

reactjs npm github-pages
1个回答
0
投票

你有没有尝试安装gh-pages?

npm install gh-pages
© www.soinside.com 2019 - 2024. All rights reserved.