CNode

npm install express失败,求指导

Jjoygpwan发布于13 年前最后回复13 年前6 回复12555 浏览0 收藏

npm http GET https://registry.npmjs.org/express npm http GET https://registry.npmjs.org/express npm http GET https://registry.npmjs.org/express npm ERR! Error: CERT_HAS_EXPIRED npm ERR! at SecurePair. (tls.js:1350:32) npm ERR! at SecurePair.EventEmitter.emit (events.js:92:17) npm ERR! at SecurePair.maybeInitFinished (tls.js:963:10) npm ERR! at CleartextStream.read [as _read] (tls.js:463:15) npm ERR! at CleartextStream.Readable.read (_stream_readable.js:320:10) npm ERR! at EncryptedStream.write [as _write] (tls.js:366:25) npm ERR! at doWrite (_stream_writable.js:219:10) npm ERR! at writeOrBuffer (_stream_writable.js:209:5) npm ERR! at EncryptedStream.Writable.write (_stream_writable.js:180:11) npm ERR! at write (_stream_readable.js:575:24) npm ERR! If you need help, you may report this log at: npm ERR! http://github.com/isaacs/npm/issues npm ERR! or email it to: npm ERR! <npm-@googlegroups.com>

报这些错误,不贴出来了,为什么呀?网上都这么说的 怎么我会失败呀

查看回复

回复 (6)

L
learchao#1·13 年前

If you need help, you may report this log at: http://github.com/isaacs/npm/issues

L
leapoahead#2·13 年前

ssl证书过期了吧

F
fengmk2#3·13 年前

试试直接使用http

npm --registry=http://registry.npmjs.org install express
J
joygpwan#4·13 年前
引用 fengmk2试试直接使用http

这个是能够下载成功,但是不能直接用express命令,能用完整路劲访问,是没有默认安装吗

J
joygpwan#5·13 年前
引用 leapoaheadssl证书过期了吧

ssl证书过期了怎么解决?

B
bnuhero#6·13 年前
引用 fengmk2试试直接使用http

@joygpwan那就在安装的时候加上-g选项

参与回复
登录后即可参与回复。登录