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

[BUG]: spawnSync npm ENOENT Error occurs when choose JS configuration #459

Open
1 task done
hijibiji1 opened this issue Jan 18, 2025 · 2 comments
Open
1 task done
Labels
πŸ› bug Something isn't working

Comments

@hijibiji1
Copy link

hijibiji1 commented Jan 18, 2025

react-native environment setup

  • I verified that I have not react-native-cli installed globally and be up to date about the React Native environment setup.

Description

√ πŸ“˜ Using typescript ? ... no

πŸ“¦ Loading the build tool...
Error: spawnSync npm ENOENT
at Object.spawnSync (node:internal/child_process:1120:20)
at spawnSync (node:child_process:868:24)
at C:\Users\akash\AppData\Local\Temp\rncli-init-template-bghcBu\node_modules@thecodingmachine\react-native-boilerplate\template\plugins\compile-js\plugin.js:56:38
at new Promise ()
at Object.apply (C:\Users\akash\AppData\Local\Temp\rncli-init-template-bghcBu\node_modules@thecodingmachine\react-native-boilerplate\template\plugins\compile-js\plugin.js:32:12)
at applyPlugin (C:\Users\akash\AppData\Local\Temp\rncli-init-template-bghcBu\node_modules@thecodingmachine\react-native-boilerplate\template\plugins\index.js:30:16)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5) {
errno: -4058,
code: 'ENOENT',
syscall: 'spawnSync npm',
path: 'npm',
spawnargs: [ 'install', '-D', '[email protected]' ]
}

Version

4.5.1

Do you use TypeScript?

No

On which OS this issue appear on?

None

Desktop OS

Win 11

@hijibiji1 hijibiji1 added the πŸ› bug Something isn't working label Jan 18, 2025
@hijibiji1 hijibiji1 changed the title [BUG]: spawnSync npm ENOENT Error occurs when a choose JS configuration [BUG]: spawnSync npm ENOENT Error occurs when choose JS configuration Jan 19, 2025
@JeremyDolle
Copy link
Collaborator

Hi, did you use the default terminal of Windows ? Can you try with git bash for example ?

@hijibiji1
Copy link
Author

Hi, yes, I already tried the default terminal on Windows. I also used different Node versions, but nothing happened.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
πŸ› bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants