Problem running the Gulp

Asked

Viewed 134 times

2

My Gulp functioned normally, from one hour to another began to present this error:

inserir a descrição da imagem aqui

The archive /var/www/html/dna/public/css/app.css is with permission 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'
    ]);

});

1 answer

3


This happened to me directly. The solution I had was giving permission to the folder in which the 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 the $(whoami) for $USER.

This last command aims to change the file owner.

  • With the chown worked, thanks!

  • This +1 means it worked?

  • Yeah, it worked out :)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.