Problem running gulp

2

My Gulp worked normally, from one hour to another started to present this error:

The file /var/www/html/dna/public/css/app.css is allowed 777.

Contents of the gulpfile.js file

var elixir = require('laravel-elixir');

elixir(function(mix) {

    mix.sass('app.scss');
    mix.styles(['normalize.css', 'flatcolors.css'], 'public/css/padrao.css')
        .styles(['bootstrap.min.css'], 'public/css/bootstrap.css');
    mix.scripts([   'jquery-2.1.4.js', 
            'bootstrap.min.js', 
            'functions.js', 
            'ajax.js', 
            'jquery.blockUI.js'
    ]);

});
    
asked by anonymous 08.09.2016 / 16:34

1 answer

3

This happened to me straight away. The solution I had was giving permission to the folder where gulp was not having access:

 cd pasta_do_projeto
 sudo chmod -R 777 .

Another way I used to solve the problem was through the command chown .

 sudo chown -R $(whoami) .

You can also replace $(whoami) with $USER .

This last command is intended to change the owner of the files.

    
08.09.2016 / 16:43