Download from GIT

git clone git://github.com/tbranyen/nodegit.git

cd nodegit

npm run-script gen && npm install && npm test

 

Check version number of Node.js

node -v

 

Upgrade node to the latest version

2: Clear your npm cache

sudo npm cache clean -f

3: Install ‘n’

sudo npm install -g n

4: Upgrade to a later version (this step can take a while) You can specify a particular version like so:

sudo n 0.8.11

Or you can just tell the manager to install the latest stable version like so:

sudo n stable

 

Make a webpage refresh when the file on the server changes

https://www.npmjs.org/package/reload

 

Add node to the directory

 sudo nano /etc/paths
 echo $PATH

 

Add this to your webpage

 <script src="/reload/reload.js"></script>

 

In the terminal start the node server

supervisor -e 'html|js' node node.js

or
 
Go into your html directory and type...

 reload -b

 



Run your site in a browser

 https://localhost:3000/index.html

 


Refer to :

https://www.npmjs.org/package/reload

 


GRUNT Command line 

npm install - g grunt-cli