Error: spawn yarn ENOENT #14494
Replies: 5 comments 1 reply
-
It indeed looks like yarn is not installed correctly. |
Beta Was this translation helpful? Give feedback.
-
Hi Jonas, Yes, it works: C:\Users\philippe\my-theia-app>yarn --version |
Beta Was this translation helpful? Give feedback.
-
Can node generally spawn yarn? node -e "require('child_process').spawnSync('yarn', ['--version'], { stdio: 'inherit' })" If this fails with ENOENT, it confirms Node.js cannot find Yarn, even though it's in the PATH. |
Beta Was this translation helpful? Give feedback.
-
I've run the following command :
The result confirm the yarn version. |
Beta Was this translation helpful? Give feedback.
-
OK, can you run in a fresh directory: |
Beta Was this translation helpful? Give feedback.
-
Dear all, I would like to discover theia but I'm facing this issue. yarn is installed globally (version 1.22.22) and in the PATH but the issue is still there. Any Idea ?
Thanks
C:\Users\philippe\my-theia-app>yo theia-extension
? The extension's type Hello World
? The extension's name Test
Test
identical package.json
identical lerna.json
identical .gitignore
identical README.md
identical .vscode\launch.json
identical Test\package.json
identical Test\tsconfig.json
identical Test\src\browser\Test-frontend-module.ts
identical Test\src\browser\Test-contribution.ts
identical Test\README.md
identical browser-app\package.json
identical electron-app\package.json
Installing dependencies
node:events:495
throw er; // Unhandled 'error' event
^
Error: spawn yarn ENOENT
at ChildProcess._handle.onexit (node:internal/child_process:284:19)
at onErrorNT (node:internal/child_process:477:16)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Emitted 'error' event on ChildProcess instance at:
at ChildProcess._handle.onexit (node:internal/child_process:290:12)
at onErrorNT (node:internal/child_process:477:16)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
errno: -4058,
code: 'ENOENT',
syscall: 'spawn yarn',
path: 'yarn',
spawnargs: []
}
Node.js v18.20.5
Beta Was this translation helpful? Give feedback.
All reactions