我正在做一个多元观察教程,但是我支持一些非常强大的防火墙。
当我尝试运行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 ,但超时。
答案 0 :(得分:0)
我建议您通过运行分别安装font-awesome和bootstrap
npm install font-awesome --save
npm install bootstrap --save
答案 1 :(得分:0)
最后,我自己从NPM获得了这些文件的副本,并将它们放在Nodes_module文件夹中,然后我只是在代码中引用了它们。因此,我永远不必致电npm install。 希望这可以帮助像我这样的人,因为他们被困在锁定的互联网连接之后。