NPM安装失败-错误:0906D06C:PEM例程:PEM_read_bio:无起始行 [英] NPM Install Fails - error:0906D06C:PEM routines:PEM_read_bio:no start line

查看:140
本文介绍了NPM安装失败-错误:0906D06C:PEM例程:PEM_read_bio:无起始行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从npm安装 expo 软件包,但是在安装过程中,我收到一条错误, error:0906D06C:PEM例程:PEM_read_bio:没有起始行,它多次尝试获取.tar.gz文件,然后安装失败。

I am attempting to install the expo package from npm, but during the install process, I receive an error, error:0906D06C:PEM routines:PEM_read_bio:no start line, multiple times as it tries to fetch .tar.gz files, and then the installation fails.

周围,​​但我只能找到示例,该错误是在人们设置自己的服务器并遇到问题时出现的与他们的证书。但是我不是要设置服务器,而是要下载软件包,没有任何可修复的证书。我查看了〜/ .ssh目录中的id_rsa文件,它看起来格式正确,带有开始和结束定界符。

I looked around, but all I have been able to find is examples of that error when people were setting up their own servers and had issues with their certs. But I'm not trying to set up a server, I'm trying to download a package, I don't have any certs to fix. I looked at my id_rsa file in my ~/.ssh directory, and it appeared to be well formed with a start and end delimiter.

我认为这可能是一个问题

I thought this might be an issue with the package, but I had a colleague attempt to install the package and it worked for them.

有人知道我在做什么错吗?我怀疑这与我的npm安装或配置有关,但是我对应该更改的内容不知所措。

Any idea what I am doing wrong? I suspect it is an issue with my npm installation or configuration but I am at a loss as to what should be changed.

npm调试日志

以下是完整的输出:

Nathaniels-MacBook-Pro:testexpo kiddynamo$ node -v
v6.11.0
Nathaniels-MacBook-Pro:testexpo kiddynamo$ npm -v
3.10.10
Nathaniels-MacBook-Pro:testexpo kiddynamo$ npm install --save expo
npm ERR! fetch failed https://github.com/callstack-io/react-native-fbads/tarball/v4.1.0
npm WARN retry will retry, error on last attempt: Error: error:0906D06C:PEM routines:PEM_read_bio:no start line
npm ERR! fetch failed https://github.com/expo/react-native-svg/archive/5.2.0-exp.0.tar.gz
npm WARN retry will retry, error on last attempt: Error: error:0906D06C:PEM routines:PEM_read_bio:no start line
npm ERR! fetch failed https://github.com/expo/react-native-maps/archive/v0.15.2.tar.gz
npm WARN retry will retry, error on last attempt: Error: error:0906D06C:PEM routines:PEM_read_bio:no start line
npm ERR! fetch failed https://github.com/callstack-io/react-native-fbads/tarball/v4.1.0
npm WARN retry will retry, error on last attempt: Error: error:0906D06C:PEM routines:PEM_read_bio:no start line
npm ERR! fetch failed https://github.com/expo/react-native-svg/archive/5.2.0-exp.0.tar.gz
npm WARN retry will retry, error on last attempt: Error: error:0906D06C:PEM routines:PEM_read_bio:no start line
npm ERR! fetch failed https://github.com/expo/react-native-maps/archive/v0.15.2.tar.gz
npm WARN retry will retry, error on last attempt: Error: error:0906D06C:PEM routines:PEM_read_bio:no start line
npm ERR! fetch failed https://github.com/callstack-io/react-native-fbads/tarball/v4.1.0
npm ERR! fetch failed https://github.com/expo/react-native-svg/archive/5.2.0-exp.0.tar.gz
npm ERR! fetch failed https://github.com/expo/react-native-maps/archive/v0.15.2.tar.gz
npm ERR! Darwin 16.6.0
npm ERR! argv "/Users/kiddynamo/.nvm/versions/node/v6.11.0/bin/node" "/Users/kiddynamo/.nvm/versions/node/v6.11.0/bin/npm" "install" "--save" "expo"
npm ERR! node v6.11.0
npm ERR! npm  v3.10.10

npm ERR! error:0906D06C:PEM routines:PEM_read_bio:no start line
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!     /Users/kiddynamo/git/barback/testexpo/npm-debug.log


推荐答案

我终于能够找到解决该问题的方法。通过NVM卸载Node并删除我的〜/ .nvm,〜/ .npm,〜/ .node-gyp和〜/ .node_repl_history目录,然后重新安装Node可以解决此问题。不是100%知道为什么,但是希望这对遇到相同问题的人有所帮助。

I was finally able to find a solution to the issue. Uninstalling Node via NVM and deleting my ~/.nvm, ~/.npm, ~/.node-gyp, and ~/.node_repl_history directories, then reinstalling Node fixed the issue. Not 100% sure why but hopefully this is helpful to anyone experiencing the same issue.

这篇关于NPM安装失败-错误:0906D06C:PEM例程:PEM_read_bio:无起始行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆