GULP Error internal / child_process.js: 298 throw errnoException (err, 'spawn');

until yesterday I used Gulp and it worked.

Today I get this errormsg:

   internal/child_process.js:298
    throw errnoException(err, 'spawn');
    ^

Error: spawn EACCES
    at exports._errnoException (util.js:874:11)
    at ChildProcess.spawn (internal/child_process.js:298:11)
    at Object.exports.spawn (child_process.js:339:9)
    at module.exports (/var/www/html/htdocs/skin/frontend/waterlee-boilerplate/node_modules/browser-sync/node_modules/opn/index.js:76:24)
    at Object.utils.open (/var/www/html/htdocs/skin/frontend/waterlee-boilerplate/../node_modules/browser-sync/lib/utils.js:173:23)
    at Object.utils.openBrowser (/var/www/html/../htdocs/skin/frontend/waterlee-boilerplate/../node_modules/browser-sync/lib/utils.js:163:23)
    at EventEmitter.events.service:running (/var/www/html/../htdocs/skin/frontend/waterlee-boilerplate/../node_modules/browser-sync/lib/internal-events.js:45:23)
    at emitOne (events.js:82:20)
    at EventEmitter.emit (events.js:169:7)
    at /var/www/html/.../htdocs/skin/frontend/waterlee-boilerplate/../node_modules/browser-sync/lib/browser-sync.js:260:19

Since I just use Gulp, I have no idea what might cause this error. Please give me a hint.

+4
source share
2 answers

It appears that you, as a user, do not have permission to access what gulp is trying to access. Try the same steps as the user sudo.

EDIT Bernhard Prange: I also provided execution rights files. That decided him.

+2
source

, "chmod 777 -R *" . ... , , -...

+4

Source: https://habr.com/ru/post/1618104/


All Articles