This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
ra:frontend [2018/10/05 15:13] koubel [Minimum NPM] |
— (current) | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | Most of new front ends are single page applications based on React, Mobx. | ||
| - | |||
| - | ====== Minimum NPM ====== | ||
| - | |||
| - | Install package node_modules and add into package.json as dependency. | ||
| - | |||
| - | npm i package-name | ||
| - | |||
| - | Install package node_modules and add into package.json as developer dependency | ||
| - | |||
| - | npm i --save-dev package-name | ||
| - | | ||
| - | Install package in particular version | ||
| - | |||
| - | npm i --save-dev package-name@^3.2.1 | ||
| - | | ||
| - | Uninstall package | ||
| - | |||
| - | npm un package-name | ||
| - | |||
| - | Show version of installed package | ||
| - | |||
| - | npm ls package-name | ||
| - | | ||
| - | For semantic versionning see [[https://docs.npmjs.com/misc/semver|npm documentation]] | ||
| - | | ||