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

Issue with Watch and JS compiling #148

Open
actuatedigital opened this issue Sep 14, 2022 · 3 comments
Open

Issue with Watch and JS compiling #148

actuatedigital opened this issue Sep 14, 2022 · 3 comments

Comments

@actuatedigital
Copy link

When running any of the watch commands it errors when trying to handle JS.

npm run watch

[email protected] watch
cross-env NODE_ENV=development concurrently "npm run watch:css-app" "npm run watch:css-editor" "npm run watch:js"

[2]
[2] > [email protected] watch:js
[2] > cross-env NODE_ENV=development ./node_modules/.bin/esbuild ./resources/js/app.js --bundle --outfile=./js/app.js --watch
[2]
[1]
[1] > [email protected] watch:css-editor
[1] > cross-env NODE_ENV=development tailwindcss -i ./resources/css/editor-style.css -o ./css/editor-style.css --postcss --watch
[1]
[0]
[0] > [email protected] watch:css-app
[0] > cross-env NODE_ENV=development tailwindcss -i ./resources/css/app.css -o ./css/app.css --postcss --watch
[0]
[2] node:internal/child_process:413
[2] throw errnoException(err, 'spawn');
[2] ^
[2]
[2] Error: spawn Unknown system error -86
[2] at ChildProcess.spawn (node:internal/child_process:413:11)
[2] at Object.spawn (node:child_process:713:9)
[2] at spawn (/node_modules/cross-spawn/index.js:12:24)
[2] at crossEnv (/node_modules/cross-env/src/index.js:13:18)
[2] at Object. (/node_modules/cross-env/src/bin/cross-env.js:5:1)
[2] at Module._compile (node:internal/modules/cjs/loader:1126:14)
[2] at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
[2] at Module.load (node:internal/modules/cjs/loader:1004:32)
[2] at Function.Module._load (node:internal/modules/cjs/loader:839:12)
[2] at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) {
[2] errno: -86,
[2] code: 'Unknown system error -86',
[2] syscall: 'spawn'
[2] }
[2] npm run watch:js exited with code 1
[1]
[1] Rebuilding...
[0]
[0] Rebuilding...
[1] Done in 873ms.
[0] Done in 1126ms.

I've removed the path to the theme folder from the example above.

@jeffreyvr
Copy link
Owner

Not able to reproduce this. What OS are you using?

@actuatedigital
Copy link
Author

actuatedigital commented Sep 16, 2022 via email

@s-wild
Copy link

s-wild commented Mar 2, 2023

I get this error too, I am using Volta node@18 on my macOS Ventura 13.2.

I fixed it by running:

export NODE_ENV=development

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants