简体   繁体   English

npm 错误! 对 https://registry.npmjs.org/node-modules 的请求失败,原因:错误:0906D06C:PEM 例程:PEM_read_bio:没有起始行

[英]npm ERR! request to https://registry.npmjs.org/node-modules failed, reason: error:0906D06C:PEM routines:PEM_read_bio:no start line

I am getting this error while installing any JS package , I have done lots of search but no luck.我在安装任何 JS 包时遇到此错误,我进行了大量搜索但没有运气。 So please let me know where i am making mistake.所以请让我知道我哪里出错了。

npm ERR! npm 错误! request to https://registry.npmjs.org/node-modules failed, reason: error:0906D06C:PEM routines:PEM_read_bio:no start linehttps://registry.npmjs.org/node-modules 的请求失败,原因:错误:0906D06C:PEM 例程:PEM_read_bio:没有起始行

WebServer : Apache2(xampp)网络服务器:Apache2(xampp)
Node : v9.3.0节点:v9.3.0
NPM : 5.5.1净资产管理:5.5.1

I think that first you need to start prompt as an administrator, then run npm cache clean -f then try to run npm install , by this command the npm will install the packages listed in package.json.我认为首先您需要以管理员身份启动提示,然后运行npm cache clean -f然后尝试运行npm install ,通过此命令,npm 将安装 package.json 中列出的包。

Or或者

You can run npm config set registry http://registry.npmjs.org/ so you can run npm install -g node-modules .你可以运行npm config set registry http://registry.npmjs.org/这样你就可以运行npm install -g node-modules Read more in this answer .这个答案中阅读更多内容。

I faced the same problem and finally I was able to solve the exact above error by doing the following steps:-我遇到了同样的问题,最后我能够通过执行以下步骤来解决上述错误:-

  1. check version of your npm with npm -v使用 npm -v 检查 npm 的版本
  2. run npm -g install npm@<version> This step is important as npm is getting installed globally here.运行npm -g install npm@<version>这一步很重要,因为 npm 是在这里全局安装的。
  3. Now run the command where you want to install something globally using npm.现在使用 npm 在要全局安装某些内容的位置运行命令。 In my Case the command was npm install -g @angular/cli@6.2.9 which worked fine after these changes在我的情况下,命令是npm install -g @angular/cli@6.2.9在这些更改后工作正常
  4. If you are still facing the problem, I would recommend to follow the instructions about installing nodejs perfectly from here https://docs.npmjs.com/try-the-latest-stable-version-of-npm#upgrading-on-windows如果您仍然面临问题,我建议您按照https://docs.npmjs.com/try-the-latest-stable-version-of-npm#upgrading-on-windows 中有关完美安装 nodejs 的说明进行操作

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Node.js-“npm install express”错误:0906D06C:PEM 例程:PEM_read_bio npm - Node.js- "npm install express" error:0906D06C :PEM routines : PEM_read_bio npm 使用 NodeJS 将数据编码为 JWT 令牌获取错误 PEM 例程:PEM_read_bio:没有起始行 - Encoding the data to JWT token with NodeJS getting error PEM routines:PEM_read_bio:no start line NPM:请求 https://registry.npmjs.org/corepack 失败,原因:连接 EHOSTUNREACH - NPM: request to https://registry.npmjs.org/corepack failed, reason: connect EHOSTUNREACH 带有PEM文件的nodejs jsonwebtoken:错误“ PEM_read_bio:无起始行” - nodejs jsonwebtoken with PEM file: error “PEM_read_bio:no start line” npm ERR: FetchError: request to http.//registry.npmjs,org/webpack-dev-server failed: 原因。 连接 ECONNREFUSED 127.0.0:1:8000 - npm ERR! FetchError: request to http://registry.npmjs.org/webpack-dev-server failed, reason: connect ECONNREFUSED 127.0.0.1:8000 对https://registry.npmjs.org/yargs的请求失败 - request to https://registry.npmjs.org/yargs failed npm ERR:404 未找到 - 获取 https.//registry.npmjs.org/create-myreactnativeapp - 未找到 - npm ERR! 404 Not Found - GET https://registry.npmjs.org/create-myreactnativeapp - Not found eslint npm ERR: 404 Not Found - GET https.//registry.npmjs.org/eslist - 未找到 - eslint npm ERR! 404 Not Found - GET https://registry.npmjs.org/eslist - Not found 带有Google Vision API的AWS Lambda抛出PEM_read_bio:no起始行或Errno :: ENAMETOOLONG - AWS Lambda w/ Google Vision API throwing PEM_read_bio:no start line or Errno::ENAMETOOLONG Firebase/admin 使用函数错误:错误:0909006C:PEM 例程:get_name:没有起始行 - Firebase/admin using functions Error: error:0909006C:PEM routines:get_name:no start line
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM