I was trying to set up nodeJs for AngularJs on my operating System (Ubuntu 14.04) following this: guideline for installing angular js components but when tried running the last command, found this error. Can any one help.
usman@usman-cs:~/angular-phonecat$ npm run protractor
[email protected] preprotractor /home/usman/angular-phonecat npm run update-webdriver
[email protected] preupdate-webdriver /home/usman/angular-phonecat npm install
[email protected] postinstall /home/usman/angular-phonecat bower install
[email protected] update-webdriver /home/usman/angular-phonecat webdriver-manager update
selenium standalone is up to date. chromedriver is up to date.
[email protected] protractor /home/usman/angular-phonecat protractor test/protractor-conf.js
Starting selenium standalone server...
[launcher] Running 1 instances of WebDriver
[launcher] Process exited with error code 1
events.js:72
throw er; // Unhandled 'error' event
^
Error: spawn ENOENT
at errnoException (child_process.js:988:11)
at Process.ChildProcess._handle.onexit (child_process.js:779:34)
npm ERR! weird error 8
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
npm ERR! not ok code 0
usman@usman-cs:~/angular-phonecat$
ENOENT
error is generally caused when something is not found. Error says you may have a legacy node binary and it could be possible that npm is looking for something thats not found. Check whether your installs are in order – nileshwhich node
orwhere node
say? (Or if you runnode
do you get a nodejs prompt or something else?) As the error says, read /usr/share/doc/nodejs/README.Debian – P.T.