hubotio / generator-hubot

Hubot generator for Yeoman
MIT License
155 stars 91 forks source link

npm install -g yo generator-hubot fails on CentOS 6.7 #53

Closed charleshbaker closed 8 years ago

charleshbaker commented 9 years ago
[eam@ncreamutil001 ~]$ sudo /usr/local/bin/npm install -g yo generator-hubot

> spawn-sync@1.0.13 postinstall /usr/local/lib/node_modules/yo/node_modules/cross-spawn/node_modules/spawn-sync
> node postinstall

sh: node: command not found
npm WARN deprecated CSSselect@0.4.1: the module is now available as 'css-select'
npm WARN deprecated CSSwhat@0.4.7: the module is now available as 'css-what'
npm ERR! Linux 2.6.32-431.29.2.el6.x86_64
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "yo" "generator-hubot"
npm ERR! node v0.12.7
npm ERR! npm  v2.11.3
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn

npm ERR! spawn-sync@1.0.13 postinstall: `node postinstall`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the spawn-sync@1.0.13 postinstall script 'node postinstall'.
npm ERR! 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 their info via:
npm ERR!     npm owner ls spawn-sync
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/eam/npm-debug.log
charleshbaker commented 9 years ago

I did email the spawn-sync owners but thought this might be a problem w/ hubot-generator. Here is a gist of the npm-debug.log

https://gist.github.com/charleshbaker/7bbd967911172d6184d7

technicalpickles commented 8 years ago

Some possibly dumb questions:

Part of me thinks it's related to your environment, where things aren't consistently on the PATH when sudo npm install is run, meaning some of generator-hubot's dependency's dependencies (ie spawn-sync) fail to install.

technicalpickles commented 8 years ago

I haven't heard back with more info, so going to close for now. Please leave comments if anyone else runs into this!