Angular中的Node Sass错误:混合指令可能未在控制指令或其他混合指令中定义

时间:2019-02-08 13:57:51

标签: node.js angular sass

我有一个用Angular 4编写的项目,我正在尝试构建它,但我不断收到此错误:Mixins may not be defined within control directives or other mixins.

我在Internet上四处查看,并且看到了一些将node-sass降级到4.8.1版本的建议,但是当我尝试这样做时,我从Github收到了404错误:

> node-sass@4.8.1 install c:\my-project\node_modules\node-sass
> node scripts/install.js

Downloading binary from https://github.com/sass/node-sass/releases/download/v4.8.1/win32-x64-64_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v4.8.1/win32-x64-64_binding.node":

HTTP error 404 Not Found

当然,该地址:https://github.com/sass/node-sass/releases/download/v4.8.1/win32-x64-64_binding.node不存在。我的猜测是因为有可用的新版本的node-sass,而4.8.1被推回到了第二页:https://github.com/sass/node-sass/releases?after=3.5.3

我知道我正在使用非常老的Angular版本,并且已经计划对其进行升级,但是我现在没有时间这样做,有人可以解决吗?

0 个答案:

没有答案