note: nan module is use for complatabilty between version of node .
PYthon , c++11 install
python (v2.7 recommended, v3.x.x is not supported) make (or Visual Studio on Windows) C/C++ compiler toolchain, like GCC (or Visual Studio on Windows)
npm install -g node-gyp
for make build of c++ code to run in node
#make build
node-gyp configure build
which will create a folder build in your working directly
now run node primes.js
you can see the module running