Gulp Error watch path ENOSPC in gaze.js or grunt.js / ~#root -i Gulp Error watch path ENOSPC in gaze.js or grunt.js / ~#root -i Gulp Error watch path ENOSPC in gaze.js or grunt.js / ~#root -i Gulp Error watch path ENOSPC in gaze.js or grunt.js / ~#root -i Gulp Error watch path ENOSPC in gaze.js or grunt.js / ~#root -i Gulp Error watch path ENOSPC in gaze.js or grunt.js / ~#root -i Gulp Error watch path ENOSPC in gaze.js or grunt.js / ~#root -i Gulp Error watch path ENOSPC in gaze.js or grunt.js / ~#root -i
  • RU
  • UA
  • EN
  • Create an online store
  • Documentation
  • Blog
    • Unix ОS
    • Php
    • MySQL
    • JavaScript
    • Package Managers
    • Docker
    • Seo
  • Auxiliary services
    • Short Links
    • Exchange views YouTube
  • Sign in
  • Create Account
  • Home
  • JavaScript
  • Gulp Error watch path ENOSPC in gaze.js or grunt.js

Gulp Error watch path ENOSPC in gaze.js or grunt.js

When running Gulp with code like this:

gulp.task('default', ['watch']);

gulp.task('watch', ['css', 'js'], function () {
gulp.watch(scssSrc, ['css']);
gulp.watch(jsSrc, ['js']);
gulp.watch(svgSpriteSrc + "**/*.svg", ['svg']);
});

gulp.task('css', function () { /*и т.д. */}
gulp.task('js', function () { /*и т.д. */}
gulp.task('svg', function () { /*и т.д. */}

An error may occur that prevents the process from starting:

gulp_error

When running in the background, the dynamic collection of saved data in Ubuntu 18.04 is set to max_user_watches .

The fact is that the fs.inotify.max_user_watches parameter in /etc/sysctl.conf is responsible for simultaneously reading a certain number of files. When it reaches its limit, gulp's work is terminated.

Found the cure here and here :

echo fs.inotify.max_user_watches=131072 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

As a result, by increasing the number of simultaneously viewed files, we achieve the work of Gulp.

Don't go overboard with max_user_watches.

29 January 19
584
0

Comments

Name
E-mail
Rating
Review

Other articles from the category

01 April 2021

In input only numbers on js

A simple JS script, filtering input information in input. Enter only numbers.

02 February 2020

Move block in mobile version with jQuery

Let's consider how to move a block in the mobile version if it is located in a different place in the desktop version. Let's use JQuery.

21 May 2018

Code highlighting on the site using Js and Css

When describing minimal codes that have a syntax similar to C++, it may be necessary to have minimal highlighting on the site for better readability. I will give the easiest way to highlight, which I took from habrahabr. Consider, connect, describe ...

Categories

  • Unix OS
  • Php
  • MySQL
  • JavaScript
  • Package Managers
  • Docker
  • Seo

Latest comments

Добрый день, Сергей. Я на более новых версиях блют...
root-i
23.02.23
Пробовал на transmart колонке. Ничего из перечисле...
Сергей
20.02.23
HenryMit, может быть
root-i
07.02.23
Неофрейдизм — это… Определение, принципы, представ...
HenryMit
07.02.23

I share information in which I needed help and spent a lot of time figuring it out. If the information helped at least one person, then this site was not created in vain.

Thank you for the continuation of the site:
Contacts

Telegram Viber Mail

Search for articles

  • Sign in
  • Create Account

Powered by chmod -R