)
安装nodeJs
后,创建package.json(npm init)我想安装node-sass(npm install node-sass --save-dev)并发生错误。
"这是与网络连接相关的问题。在大多数情况下,您都在代理服务器后面,请确保代理商'配置设置正确"。
我的proxy=null
。我用-d
尝试了这个命令,尝试清理缓存,更新npm,什么都没有。一直都是同样的错误。有些想法? :)
这是错误响应:
Natours ania$ npm install node-sass --save-dev
npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR! network request to https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz failed, reason: read ETIMEDOUT
npm ERR! network This is a problem 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! A complete log of this run can be found in:
npm ERR! /Users/Ania/.npm/_logs/2018-05-16T17_07_41_343Z-debug.log