options of npm install - hogehoge666/syno_moments_slider GitHub Wiki

--global

  • npm will install the package globally
  • you would only use this option for the packages that are used across multiple projects.
npm install -g typings

no options

  • npm will install the package locally
  • the package will not be added to package.json
  • you would not normally use this option.

--save

  • the package will be added to package.json
  • use this option to install a package that becomes part of your production code
npm install --save request

--save-dev

  • the package will be added to package.json as a development dependency
  • use this option to install a package that is only used for development purposes.
npm install --save-dev jest