2015-09-15 11 views
5

पर अपडेट करने के बाद गल्प-एसएएस चलाने में त्रुटि, मैंने नोड v4.0.0 में अपडेट किया और जब मैं अपनी परियोजनाओं में गल्प चलाता हूं तो मुझे गल्प-सास/नोड-सास के संबंध में एक त्रुटि मिलती है, निम्नानुसार:नोड v4.0.0

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

मैं परियोजना में सभी नोड मॉड्यूल trashing और फिर से स्थापित करने की कोशिश की है, और मैं कुछ त्रुटियाँ मिलती है:

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

अन्य सभी नोड मॉड्यूल ठीक स्थापित किया है करने लगते हैं। यह नोड-सास के साथ कुछ है जो गलपस में है जो मुद्दों का कारण बन रहा है।

+0

पैकेज.जेसन में, यह गल्प-सास के लिए कौन सा संस्करण सूचीबद्ध करता है? –

+0

"gulp-sass": "^ 1.1.0", –

उत्तर

21

अपने node_modules फ़ोल्डर को हटाएं, gulp-sass को अपने पैकेज.जेसन में नवीनतम में अपडेट करें, जो 2.2.0 है, और npm install फिर से चलाएं।

+1

धन्यवाद! इसने समस्या हल की! –

+1

भी आपको धन्यवाद !! –

+1

मेरा दिन बनाया, मुझे मिले सभी उत्तरों "पायथन स्थापित करें" थे और मैं बस इसे विश्वास नहीं कर सका। धन्यवाद! – LeoLozes