npm node-gyp install issues on Windows 7 - windows
So, I don't know what was wrong before, but the solution was to uninstall Node completely and reinstall it. It came with the module already. I haven't figured out how to use it though because typing node-gyp doesn't work.
I am trying to install node-gyp using Node 8.1 (because I have to use this version). When I type
npm install -g node-gyp
I get the error message "SSL Error: SELF_SIGNED_CERT_IN_CHAIN"
I'm using npm 1.1.33, which I thought might be a problem, so I tried to upgrade using npm by following this link.
Dallas Brittany#ZTALEI ~
$ npm config set ca ""
Dallas Brittany#ZTALEI ~
$ npm install npm -g
npm http GET https://registry.npmjs.org/npm
npm http 200 https://registry.npmjs.org/npm
npm http GET https://registry.npmjs.org/npm/-/npm-1.4.15.tgz
npm http 200 https://registry.npmjs.org/npm/-/npm-1.4.15.tgz
C:\Users\Dallas Brittany\AppData\Roaming\npm\npm -> C:\Users\Dallas Brittany\Ap
Data\Roaming\npm\node_modules\npm\bin\npm-cli.js
npm#1.4.15 C:\Users\Dallas Brittany\AppData\Roaming\npm\node_modules\npm
Dallas Brittany#ZTALEI ~
$ npm -v
1.1.33
But, as you can see, it didn't upgrade anything. So I also tried
npm install npm-latest
and got the following:
npm http GET https://registry.npmjs.org/npm-latest
npm http 304 https://registry.npmjs.org/npm-latest
npm http GET https://registry.npmjs.org/lodash
npm http GET https://registry.npmjs.org/request
npm http GET https://registry.npmjs.org/vcsurl
npm http 304 https://registry.npmjs.org/lodash
npm ERR! Error: No compatible version found: lodash#'^2.4.1'
npm ERR! Valid install targets:
npm ERR! ["0.1.0","0.2.0","0.2.1","0.2.2","0.3.0","0.3.1","0.3.2","0.4.0","0.4.1
","0.4.2","0.5.0-rc.1","0.5.0","0.5.1","0.5.2","0.6.0","0.6.1","0.7.0","0.8.0","
0.8.1","0.8.2","0.9.0","0.9.1","0.9.2","0.10.0","1.0.0-rc.1","1.0.0-rc.2","1.0.0
-rc.3","1.0.0","1.0.1","1.1.0","1.1.1","1.2.0","1.2.1","1.3.0","1.3.1","2.0.0","
2.1.0","2.2.0","2.2.1","2.3.0","2.4.0","2.4.1"]
npm ERR! at installTargetsError (c:\Program Files (x86)\nodejs\node_modules\
npm\lib\cache.js:586:10)
npm ERR! at c:\Program Files (x86)\nodejs\node_modules\npm\lib\cache.js:464:
15
npm ERR! at saved (c:\Program Files (x86)\nodejs\node_modules\npm\node_modul
es\npm-registry-client\lib\get.js:136:7)
npm ERR! at c:\Program Files (x86)\nodejs\node_modules\npm\node_modules\grac
eful-fs\graceful-fs.js:230:7
npm ERR! at Object.oncomplete (fs.js:297:15)
npm ERR! [Error: No compatible version found: lodash#'^2.4.1'
npm ERR! Valid install targets:
npm ERR! ["0.1.0","0.2.0","0.2.1","0.2.2","0.3.0","0.3.1","0.3.2","0.4.0","0.4.1
","0.4.2","0.5.0-rc.1","0.5.0","0.5.1","0.5.2","0.6.0","0.6.1","0.7.0","0.8.0","
0.8.1","0.8.2","0.9.0","0.9.1","0.9.2","0.10.0","1.0.0-rc.1","1.0.0-rc.2","1.0.0
-rc.3","1.0.0","1.0.1","1.1.0","1.1.1","1.2.0","1.2.1","1.3.0","1.3.1","2.0.0","
2.1.0","2.2.0","2.2.1","2.3.0","2.4.0","2.4.1"]]
npm ERR! You may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-#googlegroups.com>
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" "install" "npm-latest"
npm ERR! cwd C:\Users\Dallas Brittany
npm ERR! node -v v0.8.1
npm ERR! npm -v 1.1.33
npm ERR! message No compatible version found: lodash#'^2.4.1'
npm ERR! message Valid install targets:
npm ERR! message ["0.1.0","0.2.0","0.2.1","0.2.2","0.3.0","0.3.1","0.3.2","0.4.0
","0.4.1","0.4.2","0.5.0-rc.1","0.5.0","0.5.1","0.5.2","0.6.0","0.6.1","0.7.0","
0.8.0","0.8.1","0.8.2","0.9.0","0.9.1","0.9.2","0.10.0","1.0.0-rc.1","1.0.0-rc.2
","1.0.0-rc.3","1.0.0","1.0.1","1.1.0","1.1.1","1.2.0","1.2.1","1.3.0","1.3.1","
2.0.0","2.1.0","2.2.0","2.2.1","2.3.0","2.4.0","2.4.1"]
npm http 304 https://registry.npmjs.org/vcsurl
npm http 304 https://registry.npmjs.org/request
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Users\Dallas Brittany\npm-debug.log
npm ERR! not ok code 0
Any suggestions?
Thanks.
Related
Not able to globally install electron on MacOS due to error
I'm getting an error while trying to globally install electron, I'm not sure why. npm ERR! code 1 npm ERR! path /usr/local/lib/node_modules/electron npm ERR! command failed npm ERR! command sh -c node install.js npm ERR! HTTPError: Response code 404 (Not Found) for https://github.com/electron/electron/releases/download/v19.0.9/electron-v19.0.9-darwin-ia32.zip npm ERR! at EventEmitter.<anonymous> (/usr/local/lib/node_modules/electron/node_modules/got/source/as-stream.js:35:24) npm ERR! at EventEmitter.emit (node:events:390:28) npm ERR! at module.exports (/usr/local/lib/node_modules/electron/node_modules/got/source/get-response.js:22:10) npm ERR! at ClientRequest.handleResponse (/usr/local/lib/node_modules/electron/node_modules/got/source/request-as-event-emitter.js:155:5) npm ERR! at Object.onceWrapper (node:events:510:26) npm ERR! at ClientRequest.emit (node:events:402:35) npm ERR! at ClientRequest.origin.emit (/usr/local/lib/node_modules/electron/node_modules/#szmarczak/http-timer/source/index.js:37:11) npm ERR! at HTTPParser.parserOnIncomingClient [as onIncoming] (node:_http_client:623:27) npm ERR! at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17) npm ERR! at TLSSocket.socketOnData (node:_http_client:487:22) npm ERR! A complete log of this run can be found in:
For some reason I don't know, your npm tries to install Electron with the ia32 architecture, resulting in a downloadable zip file which is not provided by the Electron maintainers. That's why you're getting a 404 HTTP status code. Going back in Electron's releases page, I cannot seem to find any darwin-ia32 assets (darwin is the codeame for macOS). You can try forcing npm to install the appropriate architecture using npm install --arch=x64 electron as suggested in Electron's installation guide.
"shasum check failed" Error while installing Phonegap
I have problem while installing PhoneGap on my Mac OS machine using: sudo npm install -g phonegap Error message: npm ERR! Error: shasum check failed for /Users/MYUSER/tmp/npm-33966-l4NZ7A8D/1387281663617-0.9133979633916169/tmp.tgz npm ERR! Expected: dee5a33ff04d7217194dc1ad1342e3a441761942 npm ERR! Actual: ab7d89ca1f31db14db047d01222dd968649cfb50 npm ERR! at /usr/local/lib/node_modules/npm/node_modules/sha/index.js:38:8 npm ERR! at ReadStream.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/sha/index.js:85:7) npm ERR! at ReadStream.EventEmitter.emit (events.js:120:20) npm ERR! at _stream_readable.js:896:16 npm ERR! at process._tickCallback (node.js:599:11) npm ERR! If you need help, you may report this *entire* log, npm ERR! including the npm and node versions, at: npm ERR! <http://github.com/isaacs/npm/issues> npm ERR! System Darwin 13.0.0 npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "phonegap" npm ERR! cwd /Users/HummusawY npm ERR! node -v v0.11.10-pre npm ERR! npm -v 1.3.17 npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /Users/MYUSER/npm-debug.log npm ERR! not ok code 0
Try this: sudo npm install https://registry.npmjs.org/npm/-/npm-1.3.19.tgz then sudo npm install -g phonegap The problem on my checksum was caused by https://registry.npmjs.org/npm/-/npm-1.3.19.tgz
Try this first "npm set registry https://registry.npmjs.org/" if failed then try to use the npm mirror: "npm set registry http://ec2-46-137-149-160.eu-west-1.compute.amazonaws.com" then use it normally: npm install express
You can downgrade Node.js to version 0.10.19 to solve the issue
try: npm install https://registry.npmjs.org/npm/-/npm-1.3.21.tgz change from "19" to 21
Issue when install Grunt
I get the Following on imac when install grunt sudo npm install grunt-cli -g npm http GET https://registry.npmjs.org/grunt-cli npm http 304 https://registry.npmjs.org/grunt-cli npm ERR! TypeError: uid must be an int npm ERR! at Object.fs.chown (fs.js:840:11) npm ERR! at Object.chown (/usr/local/lib/node_modules/npm/node_modules/graceful- fs/polyfills.js:131:17) npm ERR! at endChown (/usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:212:12) npm ERR! at setProps (/usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:295:5) npm ERR! at /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:286:7 npm ERR! at Object.oncomplete (fs.js:94:15) npm ERR! If you need help, you may report this log at: npm ERR! <http://github.com/isaacs/npm/issues> npm ERR! or email it to: npm ERR! <npm-#googlegroups.com> npm ERR! System Darwin 12.4.0 npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "grunt-cli" "-g" npm ERR! cwd /usr npm ERR! node -v v0.11.5-pre npm ERR! npm -v 1.3.4 Please Help me figure out what I am doing wrong here thanks!
Solved it by using version 0.10.13.
grunt-contrib-build' is not in the npm registry
I'm getting below error when I try to install npm install grunt-contrib-build --save-dev on my Windows 7 system using command prompt. C:\css-base>npm install grunt-contrib-build --save-dev npm WARN package.json my-project#0.1.0 No README.md file found! npm http GET https://registry.npmjs.org/grunt-contrib-build npm http 404 https://registry.npmjs.org/grunt-contrib-build npm ERR! 404 'grunt-contrib-build' is not in the npm registry. npm ERR! 404 You should bug the author to publish it npm ERR! 404 npm ERR! 404 Note that you can also install from a npm ERR! 404 tarball, folder, or http url, or git url. npm ERR! System Windows_NT 6.1.7601 npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod ejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "grunt-contrib-build" "--save -dev" npm ERR! cwd C:\css-base npm ERR! node -v v0.10.3 npm ERR! npm -v 1.2.17 npm ERR! code E404 npm ERR! npm ERR! Additional logging details can be found in: npm ERR! C:\css-base\npm-debug.log npm ERR! not ok code 0
If anyone finds this while trying to install this plugin: grunt-contrib-build is now called grunt-usemin However the tasks in the new plugin might not be supported, please check https://github.com/yeoman/grunt-usemin/issues/3 for more information.
Have you tried reading the error message? npm ERR! 404 'grunt-contrib-build' is not in the npm registry. npm ERR! 404 You should bug the author to publish it
Mac cant install socket.io with npm/nodejs?
I have been searching for hours now and I still have no answer for this problem. I have mac os x version 10.6.8 I installed nodejs from nodejs.org. Version is v0.6.14. I did this in terminal to check npm: npm --version. npm version is 1.1.12 after that I tried npm install socket.io and I got this error... pm http GET https://registry.npmjs.org/socket.io npm http 304 https://registry.npmjs.org/socket.io npm http GET https://registry.npmjs.org/socket.io-client/0.9.3 npm http GET https://registry.npmjs.org/policyfile/0.0.4 npm http GET https://registry.npmjs.org/redis/0.6.7 npm http 304 https://registry.npmjs.org/redis/0.6.7 npm http 304 https://registry.npmjs.org/policyfile/0.0.4 npm http 304 https://registry.npmjs.org/socket.io-client/0.9.3 npm http GET https://registry.npmjs.org/uglify-js/1.2.5 npm http GET https://registry.npmjs.org/ws npm http GET https://registry.npmjs.org/xmlhttprequest/1.2.2 npm http GET https://registry.npmjs.org/active-x-obfuscator/0.0.1 npm http 304 https://registry.npmjs.org/ws npm http 304 https://registry.npmjs.org/active-x-obfuscator/0.0.1 npm http 304 https://registry.npmjs.org/xmlhttprequest/1.2.2 npm http 304 https://registry.npmjs.org/uglify-js/1.2.5 npm http GET https://registry.npmjs.org/zeparser/0.0.5 > ws#0.4.11 preinstall /Users/NAME/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws > make execvp(): No such file or directory npm ERR! Error: ENOENT, open '/Users/NAME/node_modules/socket.io/node_modules/socket.io-client/node_modules/uglify-js/test/unit/compress/test/array1.js' npm ERR! You may report this log at: npm ERR! <http://github.com/isaacs/npm/issues> npm ERR! or email it to: npm ERR! <npm-#googlegroups.com> npm ERR! npm ERR! System Darwin 10.8.0 npm ERR! command "node" "/usr/local/bin/npm" "install" "socket.io" npm ERR! cwd /Users/NAME npm ERR! node -v v0.6.14 npm ERR! npm -v 1.1.12 npm ERR! path /Users/NAME/node_modules/socket.io/node_modules/socket.io-client/node_modules/uglify-js/test/unit/compress/test/array1.js npm ERR! code ENOENT npm ERR! message ENOENT, open '/Users/NAME/node_modules/socket.io/node_modules/socket.io-client/node_modules/uglify-js/test/unit/compress/test/array1.js' npm ERR! errno {} npm ERR! ws#0.4.11 preinstall: `make` npm ERR! `sh "-c" "make"` failed with 127 npm ERR! npm ERR! Failed at the ws#0.4.11 preinstall script. npm ERR! This is most likely a problem with the ws package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! make npm ERR! You can get their info via: npm ERR! npm owner ls ws npm ERR! There is likely additional logging output above. npm ERR! npm ERR! System Darwin 10.8.0 npm ERR! command "node" "/usr/local/bin/npm" "install" "socket.io" npm ERR! cwd /Users/NAME npm ERR! node -v v0.6.14 npm ERR! npm -v 1.1.12 npm ERR! code ELIFECYCLE npm ERR! message ws#0.4.11 preinstall: `make` npm ERR! message `sh "-c" "make"` failed with 127 npm ERR! errno {} npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /Users/NAME/npm-debug.log npm not ok PLS help!
Force the installation using npm install socket.io -f Looks like the tests needs node-waf, but not the library directly. I hope they fix these issues eventually.
Socket.io runs a make upon install and requires node-waf in order to run. Did you install node via a package manager like ports, or did you use the dmg install on the node website? This thread speaks to the issue you're having: https://github.com/LearnBoost/socket.io/issues/773
Seems like if you install an earlier version of socket.io there is no need to run the make script. I tried the following and managed to get it installed successfully on my Mac OSX 10.6.8: npm install socket.io#0.7 There is further discussion on this google groups post.