Showing posts with label nodejs. Show all posts
Showing posts with label nodejs. Show all posts

Saturday, January 14, 2012

How to host node as a service, just like IIS in Windows?

Installing node as a service will help us as below.

  • Run in the background
  • Restart automatically if it crashes

Steps:

  1. Install NSSM (non-sucking service manager). This tool lets you host a normal.exe as a Windows service.
  2. Go to command prompt.
  3. Execute nssm.exe install node-service c:\nodejs-path\node.exe c:\code\sample\server.js
  4. Execute net start  node-service
For more information see here.

Friday, January 13, 2012

How to install NodeJS plugin into Sublime Text editor in Windows?

  • Invoke the command prompt as administrator.
  • Make sure git is already installed.
  • Execute the below command.
git clone git://github.com/tanepiper/SublimeText-Nodejs.git "%APPDATA%\Sublime Text 2\Packages\Nodejs"
  • After successfully installed, restart Sublime text editor.
  • To invoke list of functions use Ctrl + Space.
For more information see here.

Friday, December 30, 2011

How to install/uninstall node modules in windows 7?

To install node module
  1. Start command prompt as administrator. For help see this link.
  2. Go to the folder where nodejs installed. Example: CD "C:\Program Files\nodejs\"
  3. Again go to the folder of node_modules under npm. Example: CD "node_modules\npm\node_modules"
  4. Execute command "npm install http-proxy"

To uninstall node module
  1. Follow Step 1 to 3 of above.
  2. Execute command "npm uninstall http-proxy"

Third Party Modules of Node.js



Good Websites to refer about Node.js