Useful shortcuts for vi editor

Monday 9 March 2015

How to install node.js in Windows?

Firstly, please go to here (C:\ or D:\) then run the following commands.

CMD> npm install jshint -g

(-g means that user can reach it from all directories when it installed)

If you use proxy, you should run below commands to download jshint module.

CMD> npm config set proxy http://YOURNAME:YOUR_PASSWORD@PROXY_ADDRESS:PROXY_PORT
CMD> npm config set https-proxy http://YOURNAME:YOUR_PASSWORD@PROXY_ADDRESS:PROXY_PORT

To run it;

CMD> jshint abc.js
abc.js: line 11, col 14, Missing semicolon.
1 error

Note: "node_modules" directory is jshint's setup directory