3

Configured NodeJS in Globally

enter image description here

On runtime, it display, "node command not found ..."

enter image description here

Prashanth Sams
  • 19,677
  • 20
  • 102
  • 125
  • Ugh, I don't know if it's that but it might be the "usual" problem with Linux. Possible solutions: http://stackoverflow.com/questions/36882988/node-command-not-found-on-debian and http://stackoverflow.com/questions/13593902/node-command-not-found but there are others. Basically, the problem is that there is an old `node` package in the Linux repos which is completely different to NodeJS. So when the latter is installed, it makes sure to not break the former and you have to do it yourself. I don't know if that's exactly your issue but it seems to be. – VLAZ Sep 03 '16 at 14:32

2 Answers2

1

There is no Node.JS installation entries in your build log. Most likely you have not configured Node.JS installation in the Build Environment section. In your config the tool is defined with the "4.2.3" name. Jenkins' Node.JS plugin does not use a single specification as a default one, hence it just falls back to a tool from the environment.

Screenshot from the Wiki page

Oleg Nenashev
  • 2,271
  • 1
  • 14
  • 4
0

I've used a temporary fix for this in my MAC machine; but really expecting an apt answer for this.


Here is the temporary fix,

Setup temporary environment for node in Execute shell

export PATH=/usr/local/bin:$PATH

enter image description here

Prashanth Sams
  • 19,677
  • 20
  • 102
  • 125