npm install express失败,求指导
发布于 11 年前 作者 joygpwan 11945 次浏览 最后一次编辑是 8 年前

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.<anonymous> (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 回复

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

ssl证书过期了吧

试试直接使用http

npm --registry=http://registry.npmjs.org install express

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

ssl证书过期了怎么解决?

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

回到顶部