Laravel elixir on linux

I am using Linux Mint and I am trying to run the sass file compiler. I installed npm and node. But when I run gulp , it does not compile and does not create a css file in the public directory. When I run it, it does not show any errors or anything else.

How do I compile a sass file in Laravel 5.2? Thanks!

Edited: This is a screenshot: Screenshot

Gulpfile.js:

 var elixir = require('laravel-elixir'); /* |-------------------------------------------------------------------------- | Elixir Asset Management |-------------------------------------------------------------------------- | | Elixir provides a clean, fluent API for defining some basic Gulp tasks | for your Laravel application. By default, we are compiling the Sass | file for our application, as well as publishing vendor resources. | */ elixir(function(mix) { mix.sass('app.scss'); }); 

My app.scss file:

 // @import "node_modules/bootstrap-sass/assets/stylesheets/bootstrap"; li { color: red; } Updated: When I ran again `npm install` there is this error: 
screen-shot

Then I ran: whereis nodejs and the output was:

nodejs: /usr/bin/nodejs /usr/lib/nodejs /usr/bin/X11/nodejs /usr/include/nodejs /usr/share/man/man1/nodejs.1.gz

and associate nodejs with the node symlink symbol I ran: ln -s /usr/bin/nodejs /usr/bin/node

But when I start gulp is still the same.

+6
source share
1 answer

Have you tried to specify the css file, as in the code below?

 var elixir = require('laravel-elixir'); /* |-------------------------------------------------------------------------- | Elixir Asset Management |-------------------------------------------------------------------------- | | Elixir provides a clean, fluent API for defining some basic Gulp tasks | for your Laravel application. By default, we are compiling the Sass | file for our application, as well as publishing vendor resources. | */ elixir(function(mix) { mix.sass('app.scss'); .version('css/app.css'); }); 


Hope this solves your problem!

+2
source

All Articles