【发布时间】:2022-03-10 08:28:56
【问题描述】:
我有一个用 Angular 4 编写的项目,我正在尝试构建它,但我不断收到此错误:Mixins may not be defined within control directives or other mixins.
我在互联网上环顾四周,看到了一些将 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,我计划升级它,但我现在没有时间这样做,有人设法解决了这个问题吗?
【问题讨论】: