无法安装 express 因为 npm install express 错误 [英] Can't install express because npm install express error

查看:213
本文介绍了无法安装 express 因为 npm install express 错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在尝试安装 express 时收到以下错误:

I'm receiving the following errors when trying to install express:

  1. npm 错误!代码 ERR_OSSL_PEM_NO_START_LINE
  2. npm 错误!错误号 ERR_OSSL_PEM_NO_START_LINE
  3. 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:

  1. 从 Programs & 卸载 nodejs卸载程序的功能.
  2. 删除这些文件:
    • C:Program Files (x86)Nodejs
    • C:Program FilesNodejs
    • C:Users{User}AppDataRoaming pm
    • C:Users{User}AppDataRoaming pm-cache
    • C:Users{User}.npmrc(也可能检查没有 . 前缀)
  1. Uninstall nodejs from Programs & Features with the uninstaller.
  2. Delete these files:
    • C:Program Files (x86)Nodejs
    • C:Program FilesNodejs
    • C:Users{User}AppDataRoaming pm
    • C:Users{User}AppDataRoaming pm-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 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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