I try to run nodejs on a brand new installation of Windows 7. This is what I've done:
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
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.
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.
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.
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.
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.
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!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With