不能使用Bower(无代理)

时间:2016-12-03 16:07:51

标签: javascript angularjs bower frontend bower-install

我无法使用bower发出请求,无论是安装包还是使用bower search进行搜索。

我尝试安装一个软件包并在终端上获得以下内容:

bower ENOTFOUND Request to https://bower.herokuapp.com/packages/flat-      ui failed: getaddrinfo ENOTFOUND bower.herokuapp.com bower.herokuapp.com:443

Stack trace:
Error: Request to https://bower.herokuapp.com/packages/flat-ui failed: getaddrinfo ENOTFOUND bower.herokuapp.com bower.herokuapp.com:443
at createError (/usr/local/lib/node_modules/bower/lib/node_modules/bower-registry-client/lib/util/createError.js:2:15)
at Request._callback (/usr/local/lib/node_modules/bower/lib/node_modules/bower-registry-client/lib/lookup.js:97:29)
at self.callback (/usr/local/lib/node_modules/bower/lib/node_modules/request/request.js:198:22)
at emitOne (events.js:96:13)
at Request.emit (events.js:188:7)
at Request.request.emit (/usr/local/lib/node_modules/bower/lib/node_modules/request-replay/index.js:69:33)
at Request.onRequestError (/usr/local/lib/node_modules/bower/lib/node_modules/request/request.js:820:8)
at emitOne (events.js:96:13)
at ClientRequest.emit (events.js:188:7)
at TLSSocket.socketErrorListener (_http_client.js:310:9)

From previous event:
at PackageRepository.fetch (/usr/local/lib/node_modules/bower/lib/core/PackageRepository.js:46:6)
at Manager._fetch (/usr/local/lib/node_modules/bower/lib/core/Manager.js:323:51)
at Array.forEach (native)
at Manager.resolve (/usr/local/lib/node_modules/bower/lib/core/Manager.js:116:23)
at Project._bootstrap (/usr/local/lib/node_modules/bower/lib/core/Project.js:559:6)
at /usr/local/lib/node_modules/bower/lib/core/Project.js:75:21

Console trace:
Error
at StandardRenderer.error (/usr/local/lib/node_modules/bower/lib/renderers/StandardRenderer.js:81:37)
at Logger.<anonymous> (/usr/local/lib/node_modules/bower/lib/bin/bower.js:110:26)
at emitOne (events.js:96:13)
at Logger.emit (events.js:188:7)
at Logger.emit (/usr/local/lib/node_modules/bower/lib/node_modules/bower-logger/lib/Logger.js:29:39)
at /usr/local/lib/node_modules/bower/lib/commands/index.js:48:20
at _rejected (/usr/local/lib/node_modules/bower/lib/node_modules/q/q.js:844:24)
at /usr/local/lib/node_modules/bower/lib/node_modules/q/q.js:870:30
at Promise.when (/usr/local/lib/node_modules/bower/lib/node_modules/q/q.js:1122:31)
at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/bower/lib/node_modules/q/q.js:788:41)

System info:
Bower version: 1.8.0
Node version: 6.9.1
OS: Darwin 16.1.0 x64

我在StackOverflow上查找了其他问题,但大多数问题都是关于代理问题。我想我没有,因为问题发生在我的家里。

它应该是什么?

0 个答案:

没有答案