Skip to content

Commit 3f06649

Browse files
authored
Update readme.md
1 parent a63b215 commit 3f06649

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

general/npm/readme.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
# npm 6
22

3+
latest is the default tag for the latest version of a package on npm.
4+
35
## `npm i`
46

57
installs everything from package-lock or package if not found, package.json has priority if in conflict with lock file (in that case package-lock will be updated as well)
68

79
--ignore-scripts disables running scripts like postinstall defined in the target package.json, download only
10+
811
-D as devDependency
12+
13+
-g run command globally
914

1015

1116
## `npm i pac`
@@ -14,7 +19,7 @@ installs or updates"pac" at highest compatible version according to package.json
1419

1520
## `npm update pac`
1621

17-
installs or updates"pac" at highest compatible version according to package.json defined range or latest if it is not there yet and will be saved in package.json package-lock
22+
updates "pac" at highest compatible version according to package.json defined range, will be saved in package.json package-lock
1823

1924
## `npm update`
2025

@@ -23,12 +28,16 @@ updates all packages to versions according to package.json defined range. Will b
2328

2429
## `npm i pac@latest`
2530

26-
forces install or update "pac" to latest version and will be saved in package.json and package-lock
31+
forces install or update "pac" to latest version and will be saved in package.json and package-lock. Some package have custom tags as well like `@preview` or `@next` for example
2732

2833
## `npm outdated`
2934

3035
overview of outdated packages
3136

37+
## `npm view pac`
38+
39+
Get an overwiew of the package "pac", latest versions, published dates, tags, etc
40+
3241
## update npm or other global package to the latest version
3342

3443
`npm i npm@latest -g` or `npm i other@latest -g`

0 commit comments

Comments
 (0)