2015-09-15 8 views
5

Ich aktualisiert auf Node v4.0.0 und nach, wenn ich schlucke in meinen Projekten bekomme ich einen Fehler in Bezug auf Gulp-Sass/Node-Sass, wie folgt:Fehler beim Ausführen von gulp-sass nach dem Update auf Node v4.0.0

Error: libsass bindings not found. Try reinstalling node-sass ?

ich habe versucht, alle Knotenmodule im Projekt Wegwerfen und neu zu installieren, und ich erhalte einige Fehler:

npm WARN package.json [email protected] No repository field.

npm WARN package.json [email protected] No license field.

npm WARN deprecated [email protected]: the module is now available as 'css-select'

npm WARN deprecated [email protected]: the module is now available as 'css-what'

npm WARN deprecated [email protected]: use [email protected]+, it does all the things

-

[email protected] install /Users/Jonathan/Documents/sites/wkux/ct-html-lib/node_modules/gulp-sass/node_modules/node-sass

node scripts/install.js

Can not download file from https://raw.githubusercontent.com/sass/node-sass-binaries/v2.1.1/darwin-x64-node-4.0/binding.node

[email protected] postinstall /Users/Jonathan/Documents/sites/wkux/ct-html-lib/node_modules/gulp-sass/node_modules/node-sass

node scripts/build.js

gyp: /Users/Jonathan/.node-gyp/4.0.0/common.gypi not found (cwd: /Users/Jonathan/Documents/sites/wkux/ct-html-lib/node_modules/gulp-sass/node_modules/node-sass) while reading includes of binding.gyp while trying to load binding.gyp

gyp ERR! configure error

gyp ERR! stack Error: gyp failed with exit code: 1

gyp ERR! stack at ChildProcess.onCpExit (/Users/Jonathan/Documents/sites/wkux/ct-html-lib/node_modules/gulp-sass/node_modules/node-sass/node_modules/pangyp/lib/configure.js:346:16)

gyp ERR! stack at emitTwo (events.js:87:13)

gyp ERR! stack at ChildProcess.emit (events.js:172:7)

gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)

gyp ERR! System Darwin 14.5.0

gyp ERR! command "/usr/local/bin/node" "/Users/Jonathan/Documents/sites/wkux/ct-html-lib/node_modules/gulp-sass/node_modules/node-sass/node_modules/pangyp/bin/node-gyp" "rebuild"

gyp ERR! cwd /Users/Jonathan/Documents/sites/wkux/ct-html-lib/node_modules/gulp-sass/node_modules/node-sass

gyp ERR! node -v v4.0.0

gyp ERR! pangyp -v v2.3.2

gyp ERR! not ok

Build failed

alle anderen Knotenmodule scheinen gut installiert zu haben. Es ist etwas mit Knoten-Hass, das ist in Schluck-Sass, dass Probleme verursacht.

+0

In package.json, welche Version listet es für Schluck-Sass auf? –

+0

"Schluck-Sass": "^ 1.1.0", –

Antwort

21

Löschen Sie den Ordner node_modules, aktualisieren Sie gulp-sass auf den neuesten Stand in Ihrem package.json, also 2.2.0, und führen Sie erneut npm install aus.

+1

Danke! Das hat das Problem gelöst! –

+1

Danke auch !! –

+1

Mein Tag gemacht, alle Antworten, die ich fand, waren "installieren Python" und ich konnte es einfach nicht glauben. Vielen Dank! – LeoLozes