【问题标题】:Functions may not be defined within control directives other mixins函数不能在控制指令中定义其他 mixin
【发布时间】:2016-04-22 08:29:38
【问题描述】:

我有一个节点项目,当我启动命令行 npm install 时,我有这个错误:

消息: node_modules\compass-mixins\lib\compass\functions_lists.scss 错误:函数可能未在控制指令或其他 mixin 中定义。 在 node_modules/compass-mixins/lib/compass/functions/_lists.scss 的第 81 行

@function compact($vars...) {

在我的上一个项目中,使用相同的 package.json 我没有任何错误。 你有解决办法吗?

谢谢

【问题讨论】:

  • 一种解决方案可能是:rm -rf node_modules; npm i
  • 我有同样的错误。另一种解决方案?
  • 升级nodejs版本可能吗?
  • 我已经有最新版本了
  • 最新版本不稳定。试试 v4。

标签: node.js gulp mixins compass


【解决方案1】:

你有两个选择:

  1. 运行npm install node-sass@3.4.2
  2. "node-sass": "3.4.2" 添加到您的package.json 中,然后运行npm install

【讨论】:

    猜你喜欢
    • 2018-10-05
    • 2016-08-15
    • 2015-08-08
    • 1970-01-01
    • 1970-01-01
    • 2016-04-29
    • 1970-01-01
    • 2015-09-24
    • 1970-01-01
    相关资源
    最近更新 更多