npm安装Bootstrap font-awesome网络错误

问题描述 投票:0回答:2

我正在做一个复杂的教程,但我背后有一些非常严格的防火墙。当我尝试运行npm install bootstrap font-awesome时,我得到了这个:

PS D:\PluralSight\HelloWorldDemo> npm install bootstrap font-awesome
npm ERR! Windows_NT 10.0.15063
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program     Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "bootstrap" "font-    awesome"
npm ERR! node v6.11.2
npm ERR! npm  v3.10.10
npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR! syscall connect

npm ERR! network connect ETIMEDOUT 104.16.27.35:443
npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network     settings.npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly.  See: 'npm help config'

npm ERR! Please include the following file with any support request:
npm ERR!     D:\PluralSight\HelloWorldDemo\npm-debug.log
PS D:\PluralSight\HelloWorldDemo> npm start

我试过ping 104.16.27.35,但它超时了。

angular twitter-bootstrap npm-install
2个回答
0
投票

我建议您通过运行单独安装font-awesomebootstrap

npm install font-awesome --save
npm install bootstrap --save

0
投票

最后,我自己从NPM获得了文件的副本,并将它们放入Nodes_module文件夹,然后我在代码中引用它们。所以我永远不必打电话给npm install。希望这有助于像我一样被困在互联网连接中的人。

© www.soinside.com 2019 - 2024. All rights reserved.