在jenkins中搭建pipeline时,遇到npminstallerror?在npm6.x之前,当需要运行npm脚本时,比如npminstall,需要手动设置--unsafe-perm,否则npm会以非root用户运行,导致运行失败。npminstall--unsafe-perm取自npm#unsafe-perm。也有可能是npm_module安装超时失败。这个时候可以暂时使用阿里云的资源库下载npm资源:npminstall--registry=https://registry.npm.taobao.org
