angularjs - 这是否可以安装 node-sass 离线代理

标签 angularjs node.js npm sass node-sass

我正在尝试使用 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 

enter image description here

是否可以离线安装此模块?

最佳答案

我在尝试在公司代理后面安装 node-sass 时遇到了类似的问题。

你可以尝试的是:

  1. 从这里下载到本地:https://github.com/sass/node-sass/releases (根据您的操作系统选择合适的)
  2. 使用二进制配置参数–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/

相关文章:

angularjs - Angular 2 GET withCredentials(接受来自服务器的cookie)

javascript - npm 审计返回奇怪的依赖项

javascript - 如何在不了解 Node/Browserify/npm 等知识的情况下使 Docxtemplater.js 在浏览器上工作?

javascript - Node hapi 应用程序启动,但似乎未绑定(bind)到端口

javascript - 如何有效地将多个集合聚合为一个集合

node.js - npm install 在 Windows PowerShell 中不起作用

javascript - 如何手动调用自定义过滤器?

javascript - 递归异步函数

angularjs - 缓存时同步获取数据,不可用时异步获取数据

node.js - 为 MongoDB 中的对象数组建立索引