I am using AWS ubuntu which using bitnami MEAN stack. To compile sass file, I am using grunt-sass which has dependency on node-sass. However when I try to install modules then I am getting following error.
sudo npm install node-sass
|
> node-sass@2.0.1 install /opt/bitnami/apps/bhs/node_modules/node-sass
> node scripts/install.js
Can not download file from https://raw.githubusercontent.com/sass/node-sass-binaries/v2.0.1/linux-x64--0.10/binding.node
> node-sass@2.0.1 postinstall /opt/bitnami/apps/bhs/node_modules/node-sass
> node scripts/build.js
module.js:340
throw err;
^
Error: Cannot find module '/opt/bitnami/apps/bhs/node_modules/node-sass/node_modules/pangyp/bin/node-gyp'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:929:3
Build failed
Obviously when I tried to run my grunt task then I am getting following error
grunt build-dev-quick
Loading "sass.js" tasks...ERROR
>> Error: `libsass` bindings not found. Try reinstalling `node-sass`?
Warning: Task "sass" not found. Use --force to continue.
Please note; when I run same on my mac book then all works good. Problem is only when I tried to run same on my AWS ubuntu machine.
Following is NPM version on my linux.
npm --version
2.1.18
Please help.