-
Notifications
You must be signed in to change notification settings - Fork 284
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
windows 11 unknown spawn error error code -4094 #3819
Comments
It looks like the child process failed to spawn an application. Can you provide some more context, that gives some more information? |
I have a similar problem when running unit tests with jest and the mongodb-memory-server package (https://github.com/nodkz/mongodb-memory-server). When running a sample script starting the server (binaries fully downloaded, no local mongod instance running locally), I get a similar error like in the issue desription. Node.js version package.json Example code import { MongoMemoryServer } from 'mongodb-memory-server';
(async () => {
const mongod = await MongoMemoryServer.create();
const uri = mongod.getUri();
console.log('uri: ', uri);
await mongod.stop();
})(); Log output MongoMS:MongoMemoryServer Mongo[unknown]: _startUpInstance threw a Error: Error: spawn UNKNOWN |
Also seeing this on Parallels Windows 11 |
I have the same issue, one time when I tried to build an Electron app with --watch, and at the same time, when running a subprocess while building a Python app, it seemed like a local issue, maybe related to 'win error' 225 |
Has anyone been able to resolve their issue? We're running into a simular issue when running unit tests in our pipelines... |
In my case, I was running the same commands for months and it worked
perfectly fine.
Suddenly it stopped working, and I received the spawn error message.
My colleagues who were using the same code didn’t experience it.
The only thing the solved that issue was to format my PC.
On Wed, 3 May 2023 at 14:32 Jules Kreutzer ***@***.***> wrote:
Has anyone been able to resolve their issue? We're running into a simular
issue when running unit tests in our pipelines...
—
Reply to this email directly, view it on GitHub
<#3819 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADDUWPG7QFNBZ7FOEZBT27LXEI66VANCNFSM5S2FFQVA>
.
You are receiving this because you commented.Message ID:
***@***.***>
--
עידו
|
Thanks for the reply. We’re currently facing this issue in Azure Pipelines. Changing the vmImage used doesn’t have any effect. Local it works as expectedMet vriendelijke groet, Jules KreutzerOp 3 mei 2023 om 18:09 heeft Ido Ayal ***@***.***> het volgende geschreven:
In my case, I was running the same commands for months and it worked
perfectly fine.
Suddenly it stopped working, and I received the spawn error message.
My colleagues who were using the same code didn’t experience it.
The only thing the solved that issue was to format my PC.
On Wed, 3 May 2023 at 14:32 Jules Kreutzer ***@***.***> wrote:
Has anyone been able to resolve their issue? We're running into a simular
issue when running unit tests in our pipelines...
—
Reply to this email directly, view it on GitHub
<#3819 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADDUWPG7QFNBZ7FOEZBT27LXEI66VANCNFSM5S2FFQVA>
.
You are receiving this because you commented.Message ID:
***@***.***>
--
עידו
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
|
I think a wrapper batch script may be missing. And the script tries to run a js file with execFileSync. Let's consider these scripts: log.js
test.js
if you run the test.js in Windows you will get this error: if you run the test.js on Unix-like platforms it will run https://stackoverflow.com/a/33510581 |
Is this issue still occuring? If not, feel free to self-close. |
I never found a fix I just got a new computer |
I have the same problem even if I try npx electron . And npx nw . I need help help me |
Kind of the fix for me was learning it was a bad install what I did was fully uninstall it then reinstalled it. Just something corrupts for some reason... |
Details
when running npx create-react-app my-app I get this error and it tells me to report this as a bug.
Node.js version
v16.14.2
Example code
npx create-react-app my-app
Operating system
windows 11
Scope
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...
Aborting installation.
Unexpected error. Please report it as a bug:
Error: spawn UNKNOWN
at ChildProcess.spawn (node:internal/child_process:413:11)
at Object.spawn (node:child_process:700:9)
at spawn (C:\Users\steel\AppData\Roaming\npm\node_modules\create-react-app\node_modules\cross-spawn\index.js:12:24)
at C:\Users\steel\AppData\Roaming\npm\node_modules\create-react-app\createReactApp.js:390:19
at new Promise ()
at install (C:\Users\steel\AppData\Roaming\npm\node_modules\create-react-app\createReactApp.js:341:10)
at C:\Users\steel\AppData\Roaming\npm\node_modules\create-react-app\createReactApp.js:468:16
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errno: -4094,
code: 'UNKNOWN',
syscall: 'spawn'
}
Deleting generated file... package.json
Deleting my-app/ from D:\testreact
Done.
Module and version
Not applicable.
The text was updated successfully, but these errors were encountered: