Node.js

Installation

  • To install Node.js, type this in Terminal:
    brew install node
    

Node Version Manager

  • To install Node Version Manager, type this in Terminal:

    brew install nvm
    
  • After the installation, type the followings in Terminal:

    mkdir ~/.nvm
    export NVM_DIR="$HOME/.nvm"
    . "/usr/local/opt/nvm/nvm.sh"
    

Install a particular Node.js version

Install Node LTS 6.9.2

  • Type this in Terminal:
    nvm install 6.9.2
    

Global Node Packages

These are the packages I use during Node.js development. Feel free to adjust that suit your coding taste.

  1. npmlist - Pretty npm list
  2. Grunt - JavaScript Task Runner
  3. gitbook-cli - GitBook's command line interface
  4. Bunyan - Simple and fast JSON logging module for Node.js
  5. PM2 - Process manager for Node.js applications with a built-in load balancer
  6. webpack - Takes modules with dependencies and generates static assets representing those modules
  7. express-generator - Express application generator
  8. nodemon - For use during development of a Node.js based application
  9. beanmaster - Beanstalk Console
  10. harp - Static web server with built in preprocessing
  11. mocha - JavaScript test framework
  12. ngrok - Secure tunnels to localhost
  13. node-uuid - Simple, fast generation of RFC4122 UUIDS
  14. prettyjson - Formatting JSON data in a coloured YAML-style
  15. sort-json - Takes a json-file and return a copy of the same file, but sorted
  16. grunt-init - Scaffolding tool used to automate project creation
  17. artillery - Load-testing for HTTP and WebSocket-based applications
  18. hercule - Markdown, API Blueprint and string transclusion
  19. npm-check - Check for outdated, incorrect, and unused dependencies

Install all the above Node packages at once, type this in Terminal:

npm install -g npmlist grunt-cli gitbook-cli bunyan pm2 webpack express-generator nodemon beanmaster harp mocha ngrok node-uuid prettyjson sort-json grunt-init artillery hercule npm-check

results matching ""

    No results matching ""