NodeJS - jakestanley/dotfiles GitHub Wiki

Packages

  • jshint
  • @angular/cli

Setting up NodeJS and NPM

Install Node Version Manager

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash

Install the latest Node LTS version using NVM

nvm install --lts

Installing global packages

npm install -g <package_name>

If it's something you use across the system, you'll want to install with the -g flag. Omit the flag if you're just installing something like an Angular app dependency.

As JSHint will be used anywhere, you should add the -g flag.