Share via

npx npm problem

Anonymous
2023-11-30T23:59:44+00:00

I encountered such a problem, I installed NodeJS and tried to use the npx create-react-app my-app command in the VScode terminal and this is what it says to me

Program 'npx.cmd' failed to run: The system cannot find the file specifiedAt

For the smart people who will write about Path, you don’t have to write, I’ve already checked everything there 100 times, tried reinstalling, running with administrator rights, nothing helps

Windows for home | Windows 11 | PC Health Checker

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

5 answers

Sort by: Most helpful
  1. Anonymous
    2023-12-01T01:04:21+00:00

    try this

    npm install -g create-react-app

    Was this answer helpful?

    3 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2024-02-08T09:34:08+00:00

    that's not very helpful it would be better if you post the solution here (if you have it) cause unfortunately I am facing the same exact issue

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  3. Jonathan Deives 73,470 Reputation points Independent Advisor
    2023-12-01T00:49:53+00:00

    My name is Jonathan Deives. I'm an Independent Advisor and I'll be glad to help you today.

    This forum is for casual users, as your question is more complex, please use the Microsoft Q&A Forum (The System Administrators and IT Pro Forum) where they can help you better.

    https://learn.microsoft.com/en-us/answers/quest...

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  4. Anonymous
    2024-02-08T09:31:27+00:00

    I am having the same problem for over a week and I can't find any solution I tried everything you mentioned as well. have you found any kinda solution?

    Was this answer helpful?

    0 comments No comments
  5. Anonymous
    2023-12-01T01:10:12+00:00

    try this
    yarn create react-app your-app-name

    or this
    npm init -y npm install react react-dom react-scripts --save

    Then, add scripts to your package.json

    "scripts": {

    "start": "react-scripts start",

    "build": "react-scripts build",

    "test": "react-scripts test",

    "eject": "react-scripts eject"

    }

    npm start

    or try this

    If the issue persists, you can try specifying the full path to the npx.cmd file. Locate where npx.cmd is installed and use its full path in your command:

    C:\path\to\node_modules.bin\npx.cmd create-react-app your-app-name

    Was this answer helpful?

    0 comments No comments