
Blog
Project 365 – Post Photos Every Day – Day 7/365
Youtube Song – Main Shayar To Nahin
Project 365 – Post Photos Every Day – Day 6/365
npm not working even after nodejs plugin install – Jenkins
For npm command to work, its recommended to install nodejs plugin.
Installing nodejs plugin:
https://wiki.jenkins.io/display/JENKINS/NodeJS+Plugin
Manage Jenkins
But sometimes even after the plugin is installed, npm command doesn’t work and shows an error. To resolve this, add the path
+ echo /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/jvm/java-1.8-openjdk/jre/bin:/usr/lib/jvm/java-1.8-openjdk/bin
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/jvm/java-1.8-openjdk/jre/bin:/usr/lib/jvm/java-1.8-openjdk/bin
+ node -v
v6.10.3
+ npm -v
/tmp/jenkins5796057968635450386.sh: line 1: npm: not found
Build step ‘Execute shell’ marked build as failure
Finished: FAILURE
For this failure, please update the path to bin folder explicitly like below.
Then run the build job again and it should succeed.
Project 365 – Post Photos Every Day
12 Dec’17 Day 4 / 365

11 Dec’17 Day 3 / 365

10 Dec’17 Day 2 / 365

06 Dec’17 Day 1 / 365
