vuepress用travis-cli持续集成时出现个问题
install.npm
2010.80s$ npm ci
204
2050.18s$ npm run docs:build
206
207\> newNode@1.0.0 docs:build /home/travis/build/15835196981/newNodeCode
208\> vuepress build docs
209
210sh: 1: vuepress: not found
211npm ERR! code ELIFECYCLE
212npm ERR! syscall spawn
213npm ERR! file sh
214npm ERR! errno ENOENT
215npm ERR! newNode@1.0.0 docs:build: \`vuepress build docs\`
216npm ERR! spawn ENOENT
217npm ERR!
218npm ERR! Failed at the newNode@1.0.0 docs:build script.
219npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
220
221npm ERR! A complete log of this run can be found in:
222npm ERR! /home/travis/.npm/\_logs/2020-01-26T07\_54\_52\_752Z-debug.log
223The command "npm run docs:build" exited with 1.
cache.2
224store build cache
228
229
230Done. Your build exited with 1.
这个是travis后台提示的错误,怎么安装vuepress呢
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
自己解决
在
.travis.yml
文件里写上安装vuepress的命令就行了