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



直到昨天我还在使用Gulp,它已经成功了。

今天我收到这个错误消息:

   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

由于我只是在使用gullow,我不知道是什么原因导致了这个错误。请给我一个提示。

太好了,我用整个项目路径的"chmod 777-R*"解决了这个问题。不是最好的方式。。。但也许这对某人有帮助。。。

看起来您作为用户没有权限访问gulp试图访问的内容。尝试与sudo用户运行相同的程序。

Bernhard Prange编辑:我现在也给了这些文件执行权。这解决了问题。

相关内容

最新更新