Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[webpack-cli] Error: spawn Unknown system error -86 #3027

Open
ntqtuan opened this issue Jul 5, 2021 · 13 comments
Open

[webpack-cli] Error: spawn Unknown system error -86 #3027

ntqtuan opened this issue Jul 5, 2021 · 13 comments

Comments

@ntqtuan
Copy link

ntqtuan commented Jul 5, 2021

Maintainer's note:

For now use mix.disableNotifications() to silence the error. This is an issue with a dependency we use and M1 Macs.


I build a project laravel + vuejs in macos.
I follow the steps:

laravel new blog
cd blog
composer require laravel/ui
php artisan ui vue
npm install && npm run dev
and then asked for the following


       Additional dependencies must be installed. This will only take a moment.

	Running: npm install vue-loader@^15.9.7 --save-dev --legacy-peer-deps

	Finished. Please run Mix again.

I run : npm install vue-loader@^15.9.7 --save-dev --legacy-peer-deps
finally i run the following command 'npm run dev' .
always get below error:

                       
[webpack-cli] Error: spawn Unknown system error -86
   at ChildProcess.spawn (node:internal/child_process:415:11)
   at spawn (node:child_process:698:9)
   at Object.execFile (node:child_process:325:17)
   at Object.module.exports.fileCommandJson (/Users/panda/Sites/blog/node_modules/node-notifier/lib/utils.js:88:13)
   at NotificationCenter.notifyRaw (/Users/panda/Sites/blog/node_modules/node-notifier/notifiers/notificationcenter.js:81:11)
   at WebpackNotifierPlugin.compilationDone (/Users/panda/Sites/blog/node_modules/webpack-notifier/index.js:129:14)
   at _next1 (eval at create (/Users/panda/Sites/blog/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:39:1)
   at eval (eval at create (/Users/panda/Sites/blog/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:63:1) {
 errno: -86,
 code: 'Unknown system error -86',
 syscall: 'spawn'
}
@davidshingie
Copy link

I am facing exactly the same issue.

@davidshingie
Copy link

I am facing exactly the same issue.

Just figured out that it was an issue with terminal-notifier.

This solution worked for me.

@ntqtuan
Copy link
Author

ntqtuan commented Jul 10, 2021

@davidshingie thank pro, i fixed

@esausaravia
Copy link

Thanks! @davidshingie

@thecrypticace
Copy link
Collaborator

I'd love to have a better fix for this. That is a significant annoyance to have to deal with. It'll require switching to a different plugin or something though.

@MT-DesignersThailand
Copy link

Installing Rosetta solved the issue for me!

@scottgrayson
Copy link

I got this problem on an m1 16 inch macbook.

https://laravel-mix.com/docs/5.0/os-notifications

if i disable notifications it goes away

@phuclh
Copy link

phuclh commented Nov 15, 2021

@scottgrayson I have the same error on m1 16" macbook, did you find out a solution?

@thecrypticace
Copy link
Collaborator

thecrypticace commented Nov 15, 2021

You can try running it through rosetta. for now: arch -x86_64 npm run dev. Let me know if that works?

@andrewgarrison
Copy link

andrewgarrison commented Jan 11, 2022

Also just got an M1 mac and am facing this issue. @scottgrayson's suggestion has temporarily suppressed the issue for me.

EDIT:
Installing Docker from here: https://docs.docker.com/desktop/mac/apple-silicon/ and then running softwareupdate --install-rosetta has fixed the issue for me.

@alexanderhorner
Copy link

alexanderhorner commented Jan 31, 2022

Easiest fix:

Add mix.disableNotifications()to your webpack.mix.js

This disables notifications completely and the error disappears.

const mix = require('laravel-mix');

/*
 |--------------------------------------------------------------------------
 | Mix Asset Management
 |--------------------------------------------------------------------------
 |
 | Mix provides a clean, fluent API for defining some Webpack build steps
 | for your Laravel applications. By default, we are compiling the CSS
 | file for the application as well as bundling up all the JS files.
 |
 */

mix.disableNotifications()
    .js('resources/js/app.js', 'public/js')
    .postCss('resources/css/app.css', 'public/css', [
        //
    ]);

@kaiserkiwi
Copy link

I just had the same issue after I set up a new MacBook. After I executed softwareupdate --install-rosetta and restarted the terminal it instantly worked.

@arjun-jar
Copy link

uninstall any new antivirus software,
it will work

rootpd pushed a commit to remp2020/crm-admin-module that referenced this issue Nov 25, 2022
- Fixed by temporarily disabling laravel-mix notifications
- See laravel-mix/laravel-mix#3027
rootpd pushed a commit to remp2020/crm-products-module that referenced this issue Nov 25, 2022
- Fixed by temporarily disabling laravel-mix notifications
- See laravel-mix/laravel-mix#3027
rootpd pushed a commit to remp2020/crm-wallet-pay-module that referenced this issue Nov 25, 2022
- Fixed by temporarily disabling laravel-mix notifications
- See laravel-mix/laravel-mix#3027
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests