本文介绍了无法安装 express 因为 npm install express 错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在尝试安装 express
时收到以下错误:
I'm receiving the following errors when trying to install express
:
npm 错误!代码 ERR_OSSL_PEM_NO_START_LINE
npm 错误!错误号 ERR_OSSL_PEM_NO_START_LINE
npm 错误!对 https://registry.npmjs.org/express 的请求失败,原因:error:0909006C:PEMroutines:get_name:no start line
推荐答案
我也遇到了这样的问题...在网上四处寻找各种解决方案我尝试了其中的几个:
I also had a problem like that... and looking around for various solutions on the internet I tried a few of these:
- 尝试
npm install
到另一个存储库 - 尝试安装另一个版本的 node.js
npm 设置注册表 http://registry.npmjs.org/
- Try
npm install
to another repository - Try install another version of node.js
npm set registry http://registry.npmjs.org/
如果上述方法仍然失败.你可以试试这些:
If the above method still fails. You can try these:
- 从 Programs & 卸载 nodejs卸载程序的功能.
- 删除这些文件:
C:Program Files (x86)Nodejs
C:Program FilesNodejs
C:Users{User}AppDataRoamingpm
C:Users{User}AppDataRoamingpm-cache
C:Users{User}.npmrc
(也可能检查没有.
前缀)
- Uninstall nodejs from Programs & Features with the uninstaller.
- Delete these files:
C:Program Files (x86)Nodejs
C:Program FilesNodejs
C:Users{User}AppDataRoamingpm
C:Users{User}AppDataRoamingpm-cache
C:Users{User}.npmrc
(and possibly check for that without the.
prefix too)
祝你好运...根据我上面提到的内容,我能够通过我的设置解决问题.
Good luck... with what I mentioned above, I was able to solve the problem with my setup.
这篇关于无法安装 express 因为 npm install express 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!