最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - npx-create-react-app my-app command ERROR in Vs Code - Stack Overflow

programmeradmin0浏览0评论
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
Add a ment  | 

6 Answers 6

Reset to default 1

have 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.

发布评论

评论列表(0)

  1. 暂无评论