In node.js I was getting problems (Error: SSL Error: SELF_SIGNED_CERT_IN_CHAIN) with getting libraries, so I tried the solution from here
receiving error: 'Error: SSL Error: SELF_SIGNED_CERT_IN_CHAIN' while using npm
which is to run
npm config set strict-ssl false
and now when I try to get a library, I get this:
npm ERR! registry error parsing json
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\node
node_modules\\npm\\bin\\npm-cli.js" "install" "imagemin"
npm ERR! node v4.4.4
npm ERR! npm v2.15.1
npm ERR! Unexpected token <
npm ERR! <HEAD><TITLE>Authorization Required</TITLE></HEAD>
npm ERR! <BODY BGCOLOR="white" FGCOLOR="black"><H1>Authorization Required</H
R>
npm ERR! <FONT FACE="Helvetica,Arial"><B>
npm ERR! Description: Authorization is required for access to this proxy</B>
NT>
npm ERR! <HR>
npm ERR! <!-- default "Authorization Required" response (401) -->
npm ERR! </BODY>
npm ERR!
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\me\Desktop\site\tools\npm-debug.log
Does anyone know how to fix it?
Thanks
Related
npm ERR! Windows_NT 10.0.16299
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "bcrypt"
npm ERR! node v6.11.0
npm ERR! npm v3.10.10
npm ERR! file C:\Users\Admin\AppData\Roaming\npm-cache\code-point-at\1.1.0\package\package.json
npm ERR! code EJSONPARSE
npm ERR! Failed to parse json
npm ERR! Unexpected token 's' at 1:1
npm ERR! sEDU
npm ERR! ^
npm ERR! File: C:\Users\Admin\AppData\Roaming\npm-cache\code-point-at\1.1.0\package\package.json
npm ERR! Failed to parse package.json data.
npm ERR! package.json must be actual JSON, not just JavaScript.
npm ERR!
npm ERR! This is not a bug in npm.
npm ERR! Tell the package author to fix their package.json file. JSON.parse
npm ERR! Please include the following file with any support request:
npm ERR! D:\greenstand\2\0105\treetracker-mobile-api-master\treetracker-mobile-api-master\npm-debug.log
like muthukumar said in the comment
npm cache clean
if it doesn't work try :
1- Delete 'node_modules' folder
2- npm cache clean
3- npm update
I'm getting this error when try to install firebase-tools:
PS D:\Projects\Uni\firebase-functions-hello-world> npm install -g firebase-tools
npm ERR! Windows_NT 10.0.10240
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\
\npm-cli.js" "install" "-g" "firebase-tools"
npm ERR! node v6.10.0
npm ERR! npm v3.10.10
npm ERR! shasum check failed for C:\Users\AdMin\AppData\Local\Temp\npm-8448-fdc26aac\registry.npmjs.org
\jju\-\jju-1.3.0.tgz
npm ERR! Expected: dadd9ef01924bc728b03f2f7979bdbd62f7a2aaa
npm ERR! Actual: 2a552ad636b1e23979c677ab9f360cf1ac578f89
npm ERR! From: https://registry.npmjs.org/jju/-/jju-1.3.0.tgz
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! D:\Projects\Uni\firebase-functions-hello-world\npm-debug.log
PS D:\Projects\Uni\firebase-functions-hello-world>
i also posted this issue on github which is https://github.com/firebase/firebase-tools/issues/271
Run the command again logged in as administrator.
Every time i am trying to install anything i am getting this error, why?
reinstalled node.js many times still its same for any package.
C:\Users\Kamlesh\cjbnf>npm install express --save
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Kamlesh\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "express" "--save"
npm ERR! node v7.1.0
npm ERR! npm v3.10.9
npm ERR! file C:\Users\Kamlesh\AppData\Roaming\npm-cache\array-flatten\1.1.1\package\package.json
npm ERR! code EJSONPARSE
npm ERR! Failed to parse json
npm ERR! Unexpected token 's' at 1:1
npm ERR! s0��[��}E?�
npm ERR! ^
npm ERR! File: C:\Users\Kamlesh\AppData\Roaming\npm-cache\array-flatten\1.1.1\package\package.json
npm ERR! Failed to parse package.json data.
npm ERR! package.json must be actual JSON, not just JavaScript.
npm ERR!
npm ERR! This is not a bug in npm.
npm ERR! Tell the package author to fix their package.json file. JSON.parse
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\Kamlesh\cjbnf\npm-debug.log
I am getting below error while trying to install EXPRESS.js package with NPM. I am not sure why this is coming. I am trying with admin user on Windows PC.
ERROR 1:
C:\Users\Dell>npm install -g express
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs
\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "express"
npm ERR! node v0.12.2
npm ERR! npm v2.7.4
npm ERR! code ECONNRESET
npm ERR! network tunneling socket could not be established, cause=connect ECONNR
EFUSED
npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settin
gs.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\Dell\npm-debug.log
ERROR 2: after running "npm config delete proxy" command.
C:\Users\Dell>npm install -g express
npm ERR! fetch failed https://registry.npmjs.org/express/-/express-4.13.1.tgz
npm WARN retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND r
egistry.npmjs.org
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "express"
npm ERR! node v0.12.2
npm ERR! npm v2.7.4
npm ERR! shasum check failed for C:\Users\Dell\AppData\Local\Temp\npm-7968-a914624e\registry.npmjs.org\express\-\express-4.13.1.tgz
npm ERR! Expected: f117aa1d1f6bedbc8de5b6d71fc31a5acd0f63df
npm ERR! Actual: 6e848d49c41d8af4d604e4c76036af8a5552ec5a
npm ERR! From: https://registry.npmjs.org/express/-/express-4.13.1.tgz
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\Dell\npm-debug.log
I'm trying to install Forever for my node.js server but getting following error when npm install -g forever, I have node v0.8.5 and npm v1.1.46
npm ERR! fetch failed https://github.com/indexzero/read/tarball/refactor-option
l-streams
npm http GET https://github.com/indexzero/read/tarball/refactor-optional-stream
npm ERR! fetch failed https://github.com/indexzero/read/tarball/refactor-option
l-streams
npm http GET https://github.com/indexzero/read/tarball/refactor-optional-stream
npm ERR! fetch failed https://github.com/indexzero/read/tarball/refactor-option
l-streams
npm ERR! Error: connect ETIMEDOUT
npm ERR! at errnoException (net.js:782:11)
npm ERR! at Object.afterConnect [as oncomplete] (net.js:773:19)
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 Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Fil
s (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "forever"
npm ERR! cwd C:\Users\TJIA\Desktop\Sommarjobb\Extrauppgifter\demo
npm ERR! node -v v0.8.5
npm ERR! npm -v 1.1.46
npm ERR! syscall connect
npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Users\TJIA\Desktop\Sommarjobb\Extrauppgifter\demo\npm-debug.log
npm ERR! not ok code 0
What could be the problem.
Thanks,in advance
This means Github wasn't responding to the http request in time that was specified by npm.