You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fresh Ubuntu 16.04 install and had problems installing the generator. Looked around a little bit and found details of the problem and the solution here.
The problem is that the script seems to be looking for the command node and not the nodejs that comes with nodejs package in Ubuntu. The solution is either to sym link the command or install a legacy package that has the other executable. So:
npm ERR! [email protected] postinstall: node postinstall
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] postinstall script 'node postinstall'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the spawn-sync package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node postinstall
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs spawn-sync
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls spawn-sync
npm ERR! There is likely additional logging output above.`
The text was updated successfully, but these errors were encountered:
Fresh Ubuntu 16.04 install and had problems installing the generator. Looked around a little bit and found details of the problem and the solution here.
The problem is that the script seems to be looking for the command node and not the nodejs that comes with nodejs package in Ubuntu. The solution is either to sym link the command or install a legacy package that has the other executable. So:
TLDR version:
sudo apt-get install nodejs-legacy
Error log:
`npm ERR! Linux 4.0.5-boot2docker
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "hubot" "coffee-script" "yo" "generator-hubot"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! [email protected] postinstall:
node postinstall
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] postinstall script 'node postinstall'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the spawn-sync package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node postinstall
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs spawn-sync
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls spawn-sync
npm ERR! There is likely additional logging output above.`
The text was updated successfully, but these errors were encountered: