gpt4 book ai didi

node.js - Bower 安装错误

转载 作者:太空宇宙 更新时间:2023-11-03 22:37:46 24 4
gpt4 key购买 nike

安装 Bower 时,我收到以下错误:-

Stack trace:
Error: Request to https://bower.herokuapp.com/packages/es5-shim failed: SELF_SIG
NED_CERT_IN_CHAIN
at createError (C:\Users\Rishabh.Shukla\AppData\Roaming\npm\node_modules\bow
er\node_modules\bower-registry-client\lib\util\createError.js:2:15)
at Request._callback (C:\Users\Rishabh.Shukla\AppData\Roaming\npm\node_modul
es\bower\node_modules\bower-registry-client\lib\lookup.js:98:29)
at self.callback (C:\Users\Rishabh.Shukla\AppData\Roaming\npm\node_modules\b
ower\node_modules\bower-registry-client\node_modules\request\request.js:129:22)
at Request.EventEmitter.emit (events.js:95:17)
at Request.request.emit (C:\Users\Rishabh.Shukla\AppData\Roaming\npm\node_mo
dules\bower\node_modules\bower-registry-client\node_modules\request-replay\index
.js:69:33)
at ClientRequest.self.clientErrorHandler (C:\Users\Rishabh.Shukla\AppData\Ro
aming\npm\node_modules\bower\node_modules\bower-registry-client\node_modules\req
uest\request.js:239:10)
at ClientRequest.EventEmitter.emit (events.js:95:17)
at CleartextStream.socketErrorListener (http.js:1547:9)
at CleartextStream.EventEmitter.emit (events.js:95:17)
at SecurePair.<anonymous> (tls.js:1389:19)

Console trace:
Trace
at StandardRenderer.error (C:\Users\Rishabh.Shukla\AppData\Roaming\npm\node_
modules\bower\lib\renderers\StandardRenderer.js:74:17)
at Logger.<anonymous> (C:\Users\Rishabh.Shukla\AppData\Roaming\npm\node_modu
les\bower\bin\bower:114:22)
at Logger.EventEmitter.emit (events.js:95:17)
at Logger.emit (C:\Users\Rishabh.Shukla\AppData\Roaming\npm\node_modules\bow
er\node_modules\bower-logger\lib\Logger.js:29:39)
at C:\Users\Rishabh.Shukla\AppData\Roaming\npm\node_modules\bower\lib\comman
ds\install.js:35:16
at _rejected (C:\Users\Rishabh.Shukla\AppData\Roaming\npm\node_modules\bower
\node_modules\q\q.js:797:24)
at C:\Users\Rishabh.Shukla\AppData\Roaming\npm\node_modules\bower\node_modul
es\q\q.js:823:30
at Promise.when (C:\Users\Rishabh.Shukla\AppData\Roaming\npm\node_modules\bo
wer\node_modules\q\q.js:1035:31)
at Promise.promise.promiseDispatch (C:\Users\Rishabh.Shukla\AppData\Roaming\
npm\node_modules\bower\node_modules\q\q.js:741:41)
at C:\Users\Rishabh.Shukla\AppData\Roaming\npm\node_modules\bower\node_modul
es\q\q.js:557:44

System info:
Bower version: 1.3.1
Node version: 0.10.26
OS: Windows_NT 6.2.9200 x64

知道如何解决这个问题吗?为什么我会收到此错误?

最佳答案

今天 Bower 的当前版本是 1.3.8

每次我尝试在 Windows 7 上使用 npm install Bower 命令进行安装时,但总是失败。

搜索错误消息后,我在 GitHub 上发现了一个问题,描述了 Bower 安装中的错误,建议使用 npm install -g Bower@1.2.6 安装旧版本的 Bower

我尝试安装 1.2.6 并成功了。

但是我不喜欢使用过时的版本,然后我卸载了1.2.6版本并尝试再次安装最新版本,这次成功了。

要恢复:1 - 尝试使用 npm install -g Bower@1.2.6 安装 1.2.6 版本2 - 使用“npm uninstall -g Bower”卸载 Bower3 - 尝试使用 npm install -g Bower

安装最新版本

希望对你有帮助

关于node.js - Bower 安装错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22803534/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com