-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
Jenkins 2.45
NodeJS 1.0.1
When running a Job with:
Provide Node & npm bin/ folder to PATH: Checked
Execute shell containing any npm, node or other command related. Seems to have failed.
Used automatic installation with NodeJS 4.3.2
17:01:48 /tmp/hudson7944192678671729821.sh: line 2: npm: command not found
Steps to Reproduce:
Install NodeJS
- Click on Manage Jenkins from the Dashboard
- Click on Global Tool Configuration
- Click NodeJS installations...
- Click Add NodeJS
- Name: 4.3.2
- Check: Install Automatically
- Installation: NodeJs 4.3.2
- Global Installation: mocha chai serverless
- Global npm packages refresh hours: 72
- Click Save
Validate installation
$JENKINS_HOME/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/4.3.2
should exist
Create and Run Job
- Create a freestyle job
- Check box for:Provide Node & npm bin/ folder to PATH
- Execute Shell Containing: echo $PATH; npm --version
- duplicates
-
JENKINS-27170 "Provide Node & npm bin/ folder to PATH" not working for "npm install"
- Closed