Skip to content
Discussion options

You must be logged in to vote

It sounds like you’re trying to open npm like an app, but npm isn’t something that opens with a window. It’s a command-line tool, so you’ll need to use it from a terminal (like Command Prompt, PowerShell, or Git Bash).

Try this:

Open Command Prompt (search for cmd in Windows).

Type:

node -v
npm -v

If both show version numbers, Node and npm are installed correctly.

To create a new Vite project, run:

npm create vite@latest my-app
cd my-app
npm install
npm run dev

That should start your Vite project.
If npm still doesn’t work in the terminal, you may need to reinstall Node.js and check the “Add to PATH” option during installation.

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@cyntaxd
Comment options

Answer selected bycyntaxd
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment
Category
npm
Labels
QuestionAsk and answer questions about GitHub features and usagenpmDiscussions around programming langages, open source and software development
5 participants
@cyntaxd@mohammedinzi@jerryjames2001@shondsouza@kumarbasnet100