GULP 错误 internal/child_process.js:298 throw errnoException(err, 'spawn');
GULP Error internal/child_process.js:298 throw 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
因为我只是在使用 gulp,所以我不知道是什么导致了这个错误。请给我一个提示。
您作为用户似乎无权访问 gulp 正在尝试访问的内容。尝试 运行 与 sudo
用户相同。
Bernhard Prange 编辑:
我现在也给了文件执行权。那解决了。
太棒了,我用 "chmod 777 -R *" 为整个项目路径解决了这个问题。不是最好的方法...但也许它可以帮助某人...
直到昨天我还在使用 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
因为我只是在使用 gulp,所以我不知道是什么导致了这个错误。请给我一个提示。
您作为用户似乎无权访问 gulp 正在尝试访问的内容。尝试 运行 与 sudo
用户相同。
Bernhard Prange 编辑: 我现在也给了文件执行权。那解决了。
太棒了,我用 "chmod 777 -R *" 为整个项目路径解决了这个问题。不是最好的方法...但也许它可以帮助某人...