DEV Community

SURYA
SURYA

Posted on

Hi guys good evening i have error in creating my first react app

C:\Users\Admin>node -v
v20.11.0

C:\Users\Admin> npm -v
'CALL "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" prefix -g' is not recognized as an internal or external command,
operable program or batch file.
10.2.4

Top comments (2)

Collapse
 
angelotheman profile image
Angel Oduro-Temeng Twumasi

Has this been fixed yet?

  1. Check node.js installation
  2. Verify PATH Environment Variable
    1. Open the Start Menu and search for “Environment Variables.”
    2. Click on Edit the system environment variables.
    3. In the System Properties window, click the Environment Variables button.
    4. Under System variables, find the Path variable and click Edit.
    5. Add the path to your Node.js installation directory (usually C:\Program Files\nodejs) to the end of the Path variable. Separate multiple paths with semicolons.
    6. Click OK to save the changes.
  3. Restart Your Command Prompt
Collapse
 
suryakrr6 profile image
SURYA

Image description