Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Node not recognized although successfully installed

Tags:

I try to run nodejs on a brand new installation of Windows 7. This is what I've done:

  1. Install node using the windows installer

  2. Make sure the files were extracted to C:\Program Files (x86)\nodejs\

  3. Make sure that my Path enviorment variable contains C:\Program Files (x86)\nodejs\

  4. open up a command prompt and run node -v

This gives me the 'node is not a recognized ...' - message.

What am I missing here?


Update running echo %path% gives me a directory listing that doesn't include C:\Program Files (x86)\nodejs\, even though looking at the "environment variables" tab in the system properties displays it under path. Thats odd.

like image 866
Soroush Hakami Avatar asked Apr 12 '12 18:04

Soroush Hakami


People also ask

How do I know if node is installed successfully?

Once you install Node. js on your computer, you can verify it by opening the command prompt and typing node -v . If Node. js is installed successfully then it will display the version of the Node.

Why is node js not installing?

Install node using the windows installer. Make sure the files were extracted to C:\Program Files (x86)\nodejs\ Make sure that my Path enviorment variable contains C:\Program Files (x86)\nodejs\ open up a command prompt and run node -v.

Why node is not working in VS code?

You must click the Kill Terminal button (highlighted) and then restart VS Code and node will start working again. Best on making a change of system environment variable Path is restarting Windows to make sure that really all processes make use of the modified Path variable.


2 Answers

UPDATE: a quicker solution is per Timos comment: "Restarting explorer.exe is enough, you can stop it in task manager and start it again"

This was solved by restarting the computer.

Apparently, using the Node installer sets the path so that it is visible under system properties, but not in the command prompt (running echo %path%) until you restart your computer. Not sure if this is a problem with Windows, or the Node Installer.

like image 177
Soroush Hakami Avatar answered Jan 12 '23 11:01

Soroush Hakami


Timo's statement is accurate. For completeness...

To start explore.exe again, Ctrl+Shift+Esc to open Task Manager

Then do File > New Task (Run)> type: explorer.exe > Enter > Voila!

like image 45
sesamechicken Avatar answered Jan 12 '23 09:01

sesamechicken