NPM + Gulp.js errors (npm ERR + throw err + libsass) have been resolved...
When running npm update
I was getting this error: npm ERR! cb() never called!
This answer on StackOverflow helped solve that issue:
So here's the fix for that. These steps are from David Walsh's blog
- Clear your npm cache:
sudo npm cache clean -f
- Install the latest version of the Node helper:
npm install -g n
- Tell the helper (n) to install the latest stable version of Node:
sudo n stable
- Run
npm install
Here are my version numbers BEFORE / AFTER:
BEFORE
node -v
v0.10.35
npm -v
2.1.17
AFTER
node -v
v0.12.4
npm -v
2.10.1
After that, I started receiving an error right when running gulp --dev
:
module.js:338
throw err;
This answer on StackOverflow suggested running npm update -g
That helped, but then I was getting Error: libsass bindings not found in
in the middle of a gulp build.
To which I had 2 choices:
npm install gulp-sass
ORnode_modules
folder completely and run npm install
againI actually chose to delete the node_modules
folder completely since I wanted to make sure I was running the latest of everything... cleanly.
Long story short, everything is working again, gulp --dev
is build and the major issue I was having with gulp-imagemin
has been resolved and it's processing images once again.