Skip to content

Commit a63b215

Browse files
authored
Update readme.md
1 parent eabb70e commit a63b215

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

general/npm/readme.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,28 @@
22

33
## `npm i`
44

5-
installs everything from packagelock or package if not found
5+
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)
66

77
--ignore-scripts disables running scripts like postinstall defined in the target package.json, download only
8+
-D as devDependency
89

910

1011
## `npm i pac`
1112

12-
installs pac at latest version according to package.json defined range or latest if it is not there yet and will be saved in package.json (and lock)
13+
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
14+
15+
## `npm update pac`
16+
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
1318

1419
## `npm update`
1520

16-
updates all packages to versions according to package.json defined range. Will be saved in package.json lock only
21+
Avoid using it, prefer updating 1 by 1 for stability.
22+
updates all packages to versions according to package.json defined range. Will be saved in package.json and package-lock
1723

1824
## `npm i pac@latest`
1925

20-
forces update pac to latest version and will be saved in package.json (and lock)
26+
forces install or update "pac" to latest version and will be saved in package.json and package-lock
2127

2228
## `npm outdated`
2329

0 commit comments

Comments
 (0)