I know this may seem like a duplicate to these: Try reinstalling `node-sass` on node 0.12? And how to uninstall npm modules in node js?
The environment for our team is as follows:
<bitbucket git repo>
/sourcetree\
<local windows/mac machines>
\rsync to server/
<ubuntu 14.04 dev server>
<vhost for each dev via proxy pass to rel. port>
We prefer to handle all the modules via a package.json file, easier to setup a new dev machine.. just a simple npm install
.
The problem is this.. when node-sass
is pulled down to a local windows machine via npm install
then synced down to the dev server we keep getting the error:
Error:
libsass
bindings not found. Try reinstallingnode-sass
But then when the module is rebuilt on the server all is fine :s. As, run on the ubuntu server:
npm rebuild node-sass
But then obv. when the fileset from a dev machine is synced to the server this wipes the rebuilt files and we are back at the error again.
When we try to run the rebuild at the local machine before syncing to the server this does not fix anything.
Although we can exclude the node-sass
in the rsync command this means we then have inconsistencies when setting up a dev machine.