Gulp 编译时出现 mac m1 gulp-notify 和 node-notify 错误问题

问题描述 投票:0回答:1

我有 MacBook Pro m1 我正在使用 gulp 和 webpack for wp 项目来编译代码。

我收到此错误

[16:28:42] gulp-notify: [Error in notifier] Error in plugin "gulp-notify"
Message:
    spawn Unknown system error -86
Details:
    errno: -86
    code: Unknown system error -86
    syscall: spawn


在 MacBook Air m1 上可以使用

我删除了 gulp-notify 和 node-notify,现在它可以工作了。

有什么解决办法吗?

webpack gulp gulp-notify node-notifier
1个回答
0
投票
i had the same  problem in a m3 pro max,i exclude the gulp notify from my gulp dev and production scripts, in order to continue and plugin ... so i end up like this
<pre><code>
.pipe(notify({
            message: pumped("Fonts Moved"),
            onLast: true
        }))
</pre></code>

You will not have the notifier but you may would like to use the 
var exec = require('child_process').exec;
gulp exec will notifiy you by saying font dev mode ready for example:

<pre><code>
//include this at the start of the script
var exec = require('child_process').exec;

//...your code here 

//in module exports before the return add this

exec('say fonts dev mode ready', function (err, stdout, stderr) {
    console.log(stdout);
    console.log(stderr);
});
</pre></code>
© www.soinside.com 2019 - 2024. All rights reserved.