I am unable to use npm i -g create-react-app
when I type this it does works but returns an error:
'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 com
mand, operable program or batch file
and second error is when i type npx create-react-app app-name
:
'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 com
mand, operable program or batch file.
npx: command not found: create-react-app
Here are my local and system environment PATH variables:
Local environment variable:
C:\Users\user\AppData\Roaming\npm;C:\Program Files\nodejs;C:\Program Files\nodejs\node_modules\npm\bin;
System environment variable:
C:\Users\user\AppData\Roaming\npm;C:\Program Files\nodejs;C:\Program Files\nodejs\node_modules\npm\bin;
I already tried installing and reinstalling it .