Nodejs Windows Setup - pcimino/nodejs-restify-mongodb GitHub Wiki
A user emailed me asking about some errors he got setting up this project. I realized that I forgot to document the requirements for Python and C++. So I went through a clean Windows machine to test this, but I don't have a clean Ubuntu, or access to a Mac. So try to follow the spirit of the instructions here. I assume the Python 2.7.5 should be easy enough, not sure what you'll need to do for C++ libraries. Maybe this?
$ sudo apt-get install libdevil1c2 libdevil-dev
$ apt-file show libdevil1c2
Nodejs is pretty easy to setup, simply download it and install it. However, some of the npm packages used in this project require C++ libraries. For that you'll need Python and Visual Express.
Once done, you can verify by opening up a new command prompt and typing node --version
, you should see the version number displayed. Otherwise you'll need to add the node installation directory to the end of the PATH environment variable. For Windows 8, I had to add the Node program directory to the path.
You will need Python 2.7.5 from here. Some modules (such as node-gyp) are not compatible with Python 3.x, you'll need 2.7.5.
##C++ Libraries Some of the modules need to link to C++ libraries. You can get these by installing Microsoft Visual Studio Express 2010 (free version), which you can download here. You only need Visual Studio 2010 for the desktop.
##Install the Node Modules If you already tried to install the modules and it failed, delete the ...\nodejs-restify-mongodb\npm_modules\ directory and rerun the install command:
...\nodejs-restify-mongodb> npm install
Next, the Nodejs Server Setup
Return Home