如何修复node.js中的Authorization Required错误?

时间:2016-05-19 14:22:25

标签: node.js ssl npm

在node.js中,我遇到了问题(错误:SSL错误:SELF_SIGNED_CERT_IN_CHAIN),因此我从这里尝试了解决方案

receiving error: 'Error: SSL Error: SELF_SIGNED_CERT_IN_CHAIN' while using npm

要运行

npm config set strict-ssl false

现在当我试图建立一个图书馆时,我明白了:

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

有谁知道如何修复它?

由于

0 个答案:

没有答案