npx : The term 'npx' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included,
verify that the path is correct and try again.
At line:1 char:1
+ npx create-react-app my-app
+ ~~~
+ CategoryInfo : ObjectNotFound: (npx:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
npx : The term 'npx' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included,
verify that the path is correct and try again.
At line:1 char:1
+ npx create-react-app my-app
+ ~~~
+ CategoryInfo : ObjectNotFound: (npx:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Share
Improve this question
edited Dec 1, 2021 at 8:39
jonrsharpe
122k30 gold badges267 silver badges474 bronze badges
asked Dec 1, 2021 at 8:38
Utkarsh HadgekarUtkarsh Hadgekar
391 gold badge1 silver badge5 bronze badges
1
- Does this help? – Chukwujiobi Canon Commented Apr 30, 2024 at 17:16
6 Answers
Reset to default 1have you install the Node.Js?
https://nodejs/en/download/
if so, it's probably a "PATH environment variable" issue
Fixing npm path in Windows 8 and 10
try this code.
npm install -g create-react-app-offline
Try opening a new terminal in vscode
If that doesn't work check your path to make sure the install of npx was added
After installation , restart your vscode
You should install npx globally, try this:
npm i -g npx
On mac/linux use sudo:
sudo npm i -g npx
Install node.js, after that then restart your VS code.