Gulp compile problems with mac m1 gulp-notify and node-notify errors

101 Views Asked by At

I have macbook pro m1 i am using gulp with webpack for wp project to compile code.

i get this error

[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


on macbook air m1 it works

I deleted gulp-notify and node-notify and now it works.

Any solution ?

1

There are 1 best solutions below

0
john whitesonQ On

I had the same problem in a m3 pro max, I excluded the gulp notify from my gulp dev and production scripts in order to continue and plugin... so I ended up like this:

.pipe(notify({
  message: pumped("Fonts Moved"),
  onLast: true
}))

You will not have the notifier but you may want to use this:

var exec = require('child_process').exec;

Gulp exec will notifiy you by saying font dev mode ready, for example:

// Include this at the start of the script
var exec = require('child_process').exec;

// ...your code here 

// in module exports, add this before the return
exec('say fonts dev mode ready', function (err, stdout, stderr) {
  console.log(stdout);
  console.log(stderr);
});