1031 curl https://raw.githubusercontent.com/creationix/nvm/v0.13.1/install.sh | bash
 1032  df -h
 1033  source ~/.bash_profile
 1034  nvm list-remote
 1035  nvm -v
 1036  nvm install v8
 1037  nvm list
 1038  ll
 1039  cd ..
 1040  ll
 1041  mkdir test
 1042  cd test/
 1043  ll
 1044  npm -v
 1045  echo $PATH
 1046  node -v
 1047  whereis npm
 1048  echo $PATH

jenkins 配置如下:

这里写图片描述

Jenkins中shell-script执行报错sh: line 2: npm: command not found:https://blog.csdn.net/cql08e/article/details/79577299

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐