Laravel Elixir Sass Error

I install laravel elixir on my last homestead machine, while working on laravel 5.3, I followed the exact documentation to install laravel elixir, but this did not work, it threw an error regarding the sass file. here is a snapshot

How to solve this problem. test version → `` ``

[19:33:15] Using gulpfile ~/sites/dev.friendsforever/server/gulpfile.js [19:33:15] Starting 'all'... [19:33:15] Starting 'sass'... [19:33:16] 'sass' errored after 169 ms [19:33:16] Error: ENOENT: no such file or directory, scandir '/home/vagrant/sites/dev.friendsforever/server/node_modules/node-sass/vendor' at Error (native) at Object.fs.readdirSync (fs.js:856:18) at Object.getInstalledBinaries (/home/vagrant/sites/dev.friendsforever/server/node_modules/node-sass/lib/extensions.js:119:13) at foundBinariesList (/home/vagrant/sites/dev.friendsforever/server/node_modules/node-sass/lib/errors.js:20:15) at foundBinaries (/home/vagrant/sites/dev.friendsforever/server/node_modules/node-sass/lib/errors.js:15:5) at Object.module.exports.missingBinary (/home/vagrant/sites/dev.friendsforever/server/node_modules/node-sass/lib/errors.js:45:5) at Object.<anonymous> (/home/vagrant/sites/dev.friendsforever/server/node_modules/node-sass/lib/index.js:15:28) at Module._compile (module.js:413:34) at Object.Module._extensions..js (module.js:422:10) at Module.load (module.js:357:32) [19:33:16] 'all' errored after 179 ms [19:33:16] Error in plugin 'run-sequence(sass)' Message: ENOENT: no such file or directory, scandir '/home/vagrant/sites/dev.friendsforever/server/node_modules/node-sass/vendor' Details: errno: -2 code: ENOENT syscall: scandir path: /home/vagrant/sites/dev.friendsforever/server/node_modules/node-sass/vendor Stack: Error: ENOENT: no such file or directory, scandir '/home/vagrant/sites/dev.friendsforever/server/node_modules/node-sass/vendor' at Error (native) at Object.fs.readdirSync (fs.js:856:18) at Object.getInstalledBinaries (/home/vagrant/sites/dev.friendsforever/server/node_modules/node-sass/lib/extensions.js:119:13) at foundBinariesList (/home/vagrant/sites/dev.friendsforever/server/node_modules/node-sass/lib/errors.js:20:15) at foundBinaries (/home/vagrant/sites/dev.friendsforever/server/node_modules/node-sass/lib/errors.js:15:5) at Object.module.exports.missingBinary (/home/vagrant/sites/dev.friendsforever/server/node_modules/node-sass/lib/errors.js:45:5) at Object.<anonymous> (/home/vagrant/sites/dev.friendsforever/server/node_modules/node-sass/lib/index.js:15:28) at Module._compile (module.js:413:34) at Object.Module._extensions..js (module.js:422:10) at Module.load (module.js:357:32) 

`` `` image version →

enter image description here

+5
source share
3 answers

the problem is incompatibility between the OS and node js, so the solution simply runs the npm rebuild node-sass .

Just run npm rebuild node-sass from your host machine. If node is installed on your computer, it will restore node-sass , detect any environment of your host computer and do something specific for this node-sass assembly.

Then run the gulp command, hope it works.

+9
source

If you still do not understand this, you can run

 npm install node-sass --no-bin-links 

from a virtual machine and then gulp should work.

+3
source

If you get the error "Error: ENOENT: no such file or directory ...", run this command. It worked for me.

 npm rebuild node-sass 

Link: https://laracasts.com/discuss/channels/elixir/laravel-53-gulp-error-cannot-find-module-laravel-elixir-vue-2

0
source

All Articles