我在ubuntu上使用npm v1.0.104/node 0.6.12 - 我在尝试通过npm安装任何新模块时收到下面复制的错误(我之前使用http测试了socket.io,而不是https但是我想知道是否可以导致npm/unsigned certs的问题).一旦npm尝试解析' https: //registry.npmjs.org'URL,该错误就会弹出.无论如何我可以忽略错误或者可能找到/添加证书到受信任的商店以继续使用npm.
任何有关解决问题需要做什么的见解都将受到赞赏(我希望通过配置来解决问题,而不是在可能的情况下重新安装).
错误:"错误:SSL错误:SELF_SIGNED_CERT_IN_CHAIN"
完整消息:
npm ERR! Error: SSL Error: SELF_SIGNED_CERT_IN_CHAIN
npm ERR! at ClientRequest.<anonymous> (/usr/lib/node_modules/npm/node_modules/request/main.js:252:28)
npm ERR! at ClientRequest.emit (events.js:67:17)
npm ERR! at HTTPParser.onIncoming (http.js:1261:11)
npm ERR! at HTTPParser.onHeadersComplete (http.js:102:31)
npm ERR! at CleartextStream.ondata (http.js:1150:24)
npm ERR! at CleartextStream._push (tls.js:375:27)
npm ERR! at SecurePair.cycle (tls.js:734:20)
npm ERR! at EncryptedStream.write (tls.js:130:13)
npm ERR! at Socket.ondata (stream.js:38:26)
npm ERR! at Socket.emit (events.js:67:17)
npm ERR! Report this *entire* log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or …Run Code Online (Sandbox Code Playgroud) Fiddler有助于添加唯一的根CA证书来拦截HTTPS流量.
添加此证书后,如何删除它?

我正试图在代理后面运行npm.我已尝试直接或通过Authoxy输入代理:
npm config set proxy http://localhost:8999
npm config set https-proxy http://localhost:8999
Run Code Online (Sandbox Code Playgroud)
无论我使用哪种代理,运行时总是会遇到同样的错误npm search:
npm info it worked if it ends with ok
npm verb cli [ 'node', '/usr/local/bin/npm', 'search' ]
npm info using npm@1.1.45
npm info using node@v0.8.4
npm verb config file /Users/xxx/.npmrc
npm verb config file /usr/local/etc/npmrc
npm verb config file /usr/local/lib/node_modules/npm/npmrc
npm WARN Building the local index for the first time, please be patient
npm verb url raw /-/all
npm verb url …Run Code Online (Sandbox Code Playgroud) 我正在寻找一种方法来向NPM添加自定义CA,以便我可以使用所述证书(内部git-server)从一个位置下载,而无需使用所有CA检查
npm config set strict-ssl false
Run Code Online (Sandbox Code Playgroud)
有没有办法实现这个目标?(如果没有:是否已经存在缺陷?)
由于npm昨天放弃了对自签名证书的支持,我无法再从Windows Azure上运行的npm安装任何软件包.
在我的本地机器上,我可以通过应用此官方修复来解决问题.但是,我找不到一种方法来解决我的网站实例上的问题.有任何想法吗?
无法通过npm或yarn安装节点包
自上个月以来,这种情况一直发生在我身上,我尝试了互联网上的多种解决方案,包括堆栈溢出解决方案,例如/sf/answers/2446172851/
每次我运行类似命令时都会重新生成问题
yarn install
Run Code Online (Sandbox Code Playgroud)
npm install
Run Code Online (Sandbox Code Playgroud)
npx create-react-app myapp
Run Code Online (Sandbox Code Playgroud)
我看到的错误主要围绕此错误消息 -
ERR_SSL_DECRYPTION_FAILED_OR_BAD_RECORD_MAC
我尝试过多个节点和 npm 版本,但问题对我来说仍然是一样的。