[英]Node.js- "npm install express" error:0906D06C :PEM routines : PEM_read_bio npm
I have installed node.js and it has npm installed along with it.我已经安装了 node.js 并且它也安装了 npm。 In my windows command prompt,when i write "npm install express", it gives me the following error.How to resolve this?
在我的 Windows 命令提示符下,当我写“npm install express”时,它给了我以下错误。如何解决这个问题?
C:\\Users>npm -v
C:\\用户>npm -v
2.11.2
2.11.2
C:\\Users>npm install express
C:\\Users>npm install express
npm ERR!
npm 错误! Windows_NT 6.1.7601
视窗_NT 6.1.7601
npm ERR!
npm 错误! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs \\node_modules\\npm\\bin\\npm-cli.js" "install" "express"
argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "express"
npm ERR!
npm 错误! node v0.12.5
节点 v0.12.5
npm ERR!
npm 错误! npm v2.11.2
npm v2.11.2
npm ERR!
npm 错误! error:0906D06C:PEM routines:PEM_read_bio:no start line
错误:0906D06C:PEM 例程:PEM_read_bio:没有起始行
npm ERR!
npm 错误!
npm ERR!
npm 错误! If you need help, you may report this error at: npm ERR!
如果您需要帮助,您可以在以下位置报告此错误:npm ERR!
https://github.com/npm/npm/issueshttps://github.com/npm/npm/issues
npm ERR!
npm 错误! Please include the following file with any support request: npm ERR!
请在任何支持请求中包含以下文件:npm ERR! C:\\Users\\npm-debug.log
C:\\用户\\npm-debug.log
I also got same problem after setting registry problem got resolved.设置注册表问题得到解决后,我也遇到了同样的问题。
cmd>> npm set registry registry.npmjs.org
cmd>> npm install
it worked for me.它对我有用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.