NPM Install Fails - error:0906D06C:PEM routines:PEM_read_bio:no start line
NPM Install Fails - error:0906D06C:PEM routines:PEM_read_bio:no start line
我正在尝试从 npm 安装 expo
包,但在安装过程中,我多次收到错误 error:0906D06C:PEM routines:PEM_read_bio:no start line
,因为它试图获取 .tar.gz文件,然后安装失败。
我环顾四周,但我所能找到的只是 examples 那个错误,当时人们正在设置他们自己的服务器并且他们的证书有问题。但我不是在尝试设置服务器,而是在尝试下载一个包,我没有任何要修复的证书。我查看了 ~/.ssh 目录中的 id_rsa 文件,它似乎格式正确,带有开始和结束分隔符。
我认为这可能是软件包的问题,但我有一位同事尝试安装该软件包并且对他们有效。
知道我做错了什么吗?我怀疑这是我的 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% 确定原因,但希望这对遇到相同问题的任何人都有帮助。
我正在尝试从 npm 安装 expo
包,但在安装过程中,我多次收到错误 error:0906D06C:PEM routines:PEM_read_bio:no start line
,因为它试图获取 .tar.gz文件,然后安装失败。
我环顾四周,但我所能找到的只是 examples 那个错误,当时人们正在设置他们自己的服务器并且他们的证书有问题。但我不是在尝试设置服务器,而是在尝试下载一个包,我没有任何要修复的证书。我查看了 ~/.ssh 目录中的 id_rsa 文件,它似乎格式正确,带有开始和结束分隔符。
我认为这可能是软件包的问题,但我有一位同事尝试安装该软件包并且对他们有效。
知道我做错了什么吗?我怀疑这是我的 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% 确定原因,但希望这对遇到相同问题的任何人都有帮助。