How to Setup Windows as a Node.js Server Environment
Install the following in this order:
-
cmder Console Emulator for Windows. Use the Download Fulllink.- Download and unzip into
C:\Users\your-username-here\cmder. - Open the
C:\Users\your-username-here\cmderdirectory right click oncmdre.execlickPin to Taskbar.
- Download and unzip into
-
nvm-windows Node Version Manager for Windows. - Download
nvm-setup.zip. - Extract the
nvm-setup.exefile somewhere and run it. - TODO: The installer isn’t updating the
PATHcorrectly so thenode,npmandnvmcommands may not work. Make sure to add the following to Window’sPATH:- Open the
cmderconsole you installed above and run:setx path "%path%;C:\Users\your-username-here\AppData\Roaming\nvm;C:\Program Files\nodejs;"
- Open the
-
run:
nvm install 8.9.4 nvm use 8.9.4 node -v # Should return 8.9.4
- Download
-
windows-build-tools C++ Build Tools for Windows using npm > Note: This will take 10 - 30 minutes to complete. * Right click on the `cmder` console icon you installed above and run it as an Administrator. Then run: * `npm install --global --production windows-build-tools`
You should now have the commands, node, npm, nvm and git available from any command line or cmder console.