Update: there's an easier way to do this. Check out my new gist instead.
How I set up my Windows 10 machine for Node development. Time to complete: about 2 hours on a fast connection.
- Bash, not Windows shell
- Git
- Node/npm
- nvm or equivalent (need to be able to switch Node versions easily)
- Download cmder
- Download Nodist
- Download Python, get 2.x instead of 3.x
- Modify your global environment variable to have
;C:\Python27\;C:\Python27\Scripts
at the end - Download Windows SDK for Windows 8.1
- Download Visual Studio, install and set it up, choose "custom" and check the "Common Tools for Visual C++ 2015" option, under "Programming Languages" > "Visual C++" (DO NOT SKIP THIS STEP). Edit from @mattpodwysocki: you should be able to get by with just Visual C++ standalone.
mkdir test
cd test
npm init -y
npm install --save leveldown sqlite3 phantomjs-prebuilt browserify watchify webpack react
The above will install a bunch of popular modules, including a few native ones. If anything fails, you'll know.
- Don't skip "Visual C++" when installing Visual Studio.
- Restart Cmder after you change anything, or you might not see the changes.