I'm trying to install node-sass on ubuntu, beacuse I want to use sass-autocompile, but even when I try to compile that sass file in atom (just when I save it) It returns this error:

   return binding.readdir(pathModule._makeLong(path), options.encoding) 

 Error: ENOENT: no such file or directory, scandir 
   at Object.fs.readdirSync (fs.js:904:18)
   at Object.getInstalledBinaries (/usr/lib/node_modules/node- 
   at foundBinariesList (/usr/lib/node_modules/node- 
   at foundBinaries (/usr/lib/node_modules/node-sass/lib/errors.js:15:5)
   at Object.module.exports.missingBinary (/usr/lib/node_modules/node- 
   at module.exports (/usr/lib/node_modules/node-sass/lib/binding.js:15:30)
   at Object.<anonymous> (/usr/lib/node_modules/node- 
   at Module._compile (module.js:652:30)
   at Object.Module._extensions..js (module.js:663:10)
   at Module.load (module.js:565:32)`

I tried to use this command npm rebuild node-sass and it didn't fix the problem, even with --force

And removing nodejs and node-sass and npm and installing again didn't fix the problem and yes I do have ruby installed.

But one thing is really strange: this path node_modules/node-sass/vendor' exists in home folder, basically node_modules exists in home folder even with that vendor folder. Can you help me out ?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.