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呢
自己解决
在
.travis.yml
文件里写上安装vuepress的命令就行了