【发布时间】:2018-03-11 09:04:33
【问题描述】:
我使用的是节点版本 4.4.5,而 npm 版本是 5.3.0。 jenkins 版本是 2.46.2。
在构建时,我遇到了这个异常:
/bin/sh -xe /tmp/hudson7756731843340614304.sh
+ PATH=/sbin:/usr/sbin:/usr/bin:/usr/local/bin
+ npm install
/tmp/hudson7756731843340614304.sh: 6: /tmp/hudson7756731843340614304.sh: npm: not found
构建步骤“执行 shell”将构建标记为失败
The execute shell consist of:
#echo "PATH is :$PATH"
#echo "node version is :'node -v' "
#echo "npm version is:'npm -v' "
PATH=/sbin:/usr/sbin:/usr/bin:/usr/local/bin
npm install
npm run coverage
zip -r EngagementSystemNodeApi.zip .
请问需要做什么。
【问题讨论】:
-
你使用 NodeJS 插件吗?
-
是的,我已经安装了这个插件
-
让我更准确地说:您打算使用该插件提供的 node / npm 安装吗?