Skip to content
This repository has been archived by the owner on Feb 27, 2022. It is now read-only.

npm run serve - css error #6

Open
sarbuandreidaniel opened this issue Nov 3, 2015 · 0 comments
Open

npm run serve - css error #6

sarbuandreidaniel opened this issue Nov 3, 2015 · 0 comments

Comments

@sarbuandreidaniel
Copy link

Hi there,

I had this error when I have tried to run for the first time the npm run serve command:

offline-wikipedia@ serve /home/andrei/projects/personal/offline-wikipedia
gulp serve

[21:38:43] Using gulpfile ~/projects/personal/offline-wikipedia/gulpfile.js
[21:38:43] Starting 'serve'...
[21:38:43] Starting 'clean'...
[21:38:43] Finished 'serve' after 36 ms
[21:38:43] Finished 'clean' after 44 ms
[21:38:43] Starting 'css'...
[21:38:43] 'css' errored after 39 ms
[21:38:43] Error: libsass bindings not found. Try reinstalling node-sass?
at getBinding (/home/andrei/projects/personal/offline-wikipedia/node_modules/gulp-sass/node_modules/node-sass/lib/index.js:22:11)
at Object. (/home/andrei/projects/personal/offline-wikipedia/node_modules/gulp-sass/node_modules/node-sass/lib/index.js:188:23)
at Module._compile (module.js:434:26)
at Object.Module._extensions..js (module.js:452:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object. (/home/andrei/projects/personal/offline-wikipedia/node_modules/gulp-sass/index.js:3:17)
at Module._compile (module.js:434:26)
[21:38:43] Error in plugin 'run-sequence'
Message:
An error occured in task 'css'.

npm ERR! Linux 3.13.0-66-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "serve"
npm ERR! node v4.0.0
npm ERR! npm v2.14.2
npm ERR! code ELIFECYCLE
npm ERR! offline-wikipedia@ serve: gulp serve
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the offline-wikipedia@ serve script 'gulp serve'.
npm ERR! This is most likely a problem with the offline-wikipedia package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! gulp serve
npm ERR! You can get their info via:
npm ERR! npm owner ls offline-wikipedia
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /home/andrei/projects/personal/offline-wikipedia/npm-debug.log

It seems that this was caused because I am using node 4.0.0 and gulp-sass need to be updated to gulp-sass@2. You can do this using these commands:

npm uninstall --save-dev gulp-sass
npm install --save-dev gulp-sass@2

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant