balderdashy / sails

Realtime MVC Framework for Node.js
https://sailsjs.com
MIT License
22.83k stars 1.95k forks source link

Installation Issue #1159

Closed ghost closed 10 years ago

ghost commented 10 years ago

Hi,

I am using Node v0.10.17 and fired following NPM command. and my installation failed.

npm -g install sails

following is my console after executing command

$ npm -g install sails
npm http GET https://registry.npmjs.org/sails
npm http 304 https://registry.npmjs.org/sails
npm http GET https://registry.npmjs.org/sails-disk
npm http GET https://registry.npmjs.org/socket.io/0.9.14
npm http GET https://registry.npmjs.org/express/3.4.0
npm http GET https://registry.npmjs.org/connect-redis/1.4.5
npm http GET https://registry.npmjs.org/connect-mongo/0.3.2
npm http GET https://registry.npmjs.org/async/0.2.9
....
...
...
...
...
npm http 200 https://registry.npmjs.org/cryptiles/-/cryptiles-0.1.3.tgz
npm http 200 https://registry.npmjs.org/sntp/-/sntp-0.1.4.tgz
npm http 200 https://registry.npmjs.org/uglify-js/-/uglify-js-1.2.5.tgz
npm WARN engine cryptiles@0.1.3: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.17","npm":"1.3.8"})
npm WARN engine sntp@0.1.4: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.17","npm":"1.3.8"})
npm WARN engine hoek@0.7.6: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.17","npm":"1.3.8"})
npm WARN engine boom@0.3.8: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.17","npm":"1.3.8"})

> bson@0.1.8 install C:\Users\ashwinh\AppData\Roaming\npm\node_modules\sails\node_modules\connect-mongo\node_modules\mongodb\node_modules\bson
> (node-gyp rebuild 2> builderror.log) || (exit 0)

C:\Users\ashwinh\AppData\Roaming\npm\node_modules\sails\node_modules\connect-mongo\node_modules\mongodb\node_modules\bson>node "c:\Program Files (x86)\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
npm http GET https://registry.npmjs.org/zeparser/0.0.5
npm http GET https://registry.npmjs.org/commander
npm http GET https://registry.npmjs.org/tinycolor
npm http GET https://registry.npmjs.org/nan
npm http GET https://registry.npmjs.org/options
npm http 304 https://registry.npmjs.org/zeparser/0.0.5
npm http 304 https://registry.npmjs.org/tinycolor
npm http 304 https://registry.npmjs.org/commander
npm http 304 https://registry.npmjs.org/options
npm http 200 https://registry.npmjs.org/nan

> ws@0.4.31 install C:\Users\ashwinh\AppData\Roaming\npm\node_modules\sails\node_modules\socket.io\node_modules\socket.io-client\node_modules\ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

C:\Users\ashwinh\AppData\Roaming\npm\node_modules\sails\node_modules\socket.io\node_modules\socket.io-client\node_modules\ws>node "c:\Program Files (x86)\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
C:\Users\ashwinh\AppData\Roaming\npm\sails -> C:\Users\ashwinh\AppData\Roaming\npm\node_modules\sails\bin\sails.js
npm ERR! peerinvalid The package generator-karma does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer generator-angular@0.6.0-rc.2 wants generator-karma@~0.6.0

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "c:\\Program Files (x86)\\nodejs\\node.exe" "c:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "-g" "install" "sails"
npm ERR! cwd C:\Users\ashwinh
npm ERR! node -v v0.10.17
npm ERR! npm -v 1.3.8
npm ERR! code EPEERINVALID
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     C:\Users\ashwinh\npm-debug.log
npm ERR! not ok code 0
ghost commented 10 years ago

I did the above work on Windows OS. I also tried using latest version of node (0.10.21) on Linux (Ubuntu Latest) but did not worked and gave me same error ?

Am i missing some step during installation?

sgress454 commented 10 years ago

Seems like it's possibly an issue with some previously-installed modules. You can try listing your globally installed modules with npm list -g, and looking for any errors in the output. You can then do npm list -g <module name> to see if anything is depending on the problem module, and then upgrade / uninstall it...

bhanuc commented 10 years ago

Since I see a dependency error, I owuld have tried to manual install the dependency myself . Happens sometimes with me .Try npm install -g generator-karma . And then try again

mikermcneil commented 10 years ago

@Ashwinh Hmm- tried this on the latest version of npm? We've run into similar problems, but it seems to get better if you sudo npm install npm -g. Other general troubleshooting tips to try:

$ npm cache clear
$ sudo npm cache clear
$ rm -rf node_modules

If you run into further issues, feel free to hit us up in IRC. I'd say check stackoverflow as well. If you've verified that it's an issue with npm, please create an npm issue and let us know-- I'll do my best to help look into it, time permitting.

Also, some related issues that might help:

Good luck!