我正在尝试使用 npm 安装 node-sass 模块,但每次都会显示有关网络配置问题的错误,这是因为我正在使用代理和私有(private)注册表,这是错误:
This is most likely not a problem with node-gyp or the package itself and is related to network connectivity In most cases you are behind a proxy or have bad network setting
是否可以离线安装此模块?
最佳答案
我在尝试在公司代理后面安装 node-sass 时遇到了类似的问题。
你可以尝试的是:
- 从这里下载到本地:https://github.com/sass/node-sass/releases (根据您的操作系统选择合适的)
使用二进制配置参数–sass-binary-path .安装它。
npm install --sass-binary-path="C:\src\v4.7.2\win32-x64-57_binding.node"
关于angularjs - 这是否可以安装 node-sass 离线代理,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48882943/