Skip to content

Instantly share code, notes, and snippets.

@timothy
Last active December 17, 2015 16:40
Show Gist options
  • Save timothy/7e09a1e35a6fb5d9f5b5 to your computer and use it in GitHub Desktop.
Save timothy/7e09a1e35a6fb5d9f5b5 to your computer and use it in GitHub Desktop.
-g //this means global
--save-dev // save to the davDependencies in package.json
--save // save to the Dependencies in package.json
//find all global packages
npm list -g --depth=0
//Install packages for a specific project locally. Install as dev dependency.
npm install --save-dev package-name
//install gulp and bower at the same time..
npm install –g gulp bower
//install only gulp
npm install –g gulp
//installs gulp to a local project as a dev dependency.
npm install gulp --save-dev
--------------------------------------------------------------------------------------------
JSHint is a JavaScript Code Analysis tool. It will detect errors and potential problems in js code. You can also custom configure rules.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment