Skip to content

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

@hijibiji1

Description

@hijibiji1

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', 'typescript@5.6.3' ]
}

Version

4.5.1

Do you use TypeScript?

No

On which OS this issue appear on?

None

Desktop OS

Win 11

Activity

changed the title [-][BUG]: spawnSync npm ENOENT Error occurs when a choose JS configuration[/-] [+][BUG]: spawnSync npm ENOENT Error occurs when choose JS configuration[/+] on Jan 19, 2025
JeremyDolle

JeremyDolle commented on Jan 27, 2025

@JeremyDolle
Collaborator

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

hijibiji1

hijibiji1 commented on Jan 28, 2025

@hijibiji1
Author

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

the-marolie

the-marolie commented on Feb 15, 2025

@the-marolie

I'm facing the same issue. Facing the issue on both native terminal as well as gitbash.

JeremyDolle

JeremyDolle commented on Apr 7, 2025

@JeremyDolle
Collaborator

What is your node version used for the project and the version of npm too

yasirkhan-am

yasirkhan-am commented on Jun 19, 2025

@yasirkhan-am

i try to fork and edit the repo it is copying from js/src folder but folder exist with this name i think thats why the problem is occuring please fix this issue

akashClarityCx

akashClarityCx commented on Jun 19, 2025

@akashClarityCx

What is your node version used for the project and the version of npm too

im using LTS node version v20 and npm v10.9.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @JeremyDolle@the-marolie@hijibiji1@akashClarityCx@yasirkhan-am

        Issue actions

          [BUG]: spawnSync npm ENOENT Error occurs when choose JS configuration Β· Issue #459 Β· thecodingmachine/react-native-boilerplate