Gradle,Gulp,Sass - 缺少node-sass绑定

时间:2016-06-16 09:56:09

标签: gradle gulp gulp-sass

我正在尝试运行一个运行我的gulp构建的gradle构建。我希望能够使用特定版本的节点(0.12.7)来进行构建,但我在本地计算机上安装了节点0.10.x。

但是,当我运行gradle clean build时,我收到以下错误:

Error: Missing binding C:\myapp\node_modules\gulp-sass\node_modules\node-sass\vendor\win32-x64-14\binding.node
Node Sass could not find a binding for your current environment: Windows 64-bit with Node 0.12.x

Found bindings for the following environments:
  - Windows 64-bit with Node 0.10.x

This usually happens because your environment has changed since running `npm install`.

gradle setup:

    plugins {
    id "java"
    id "idea"
    id "maven"
    id "com.moowork.node" version "0.12"
    id "com.moowork.gulp" version "0.12"
}

    // configure gradle-node-plugin
node {
    version = '0.12.7'
    download = true
}

// clean node/node_modules/typings
task npmClean(type: Delete) {
    delete "${rootDir}/node_modules"
}

gulp_dev.dependsOn installGulp
gulp_dev.dependsOn npmInstall
build.dependsOn(gulp_dev)
clean.dependsOn(npmClean)

知道为什么会这样吗?

0 个答案:

没有答案