You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: general/npm/readme.md
+10-4Lines changed: 10 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,22 +2,28 @@
2
2
3
3
## `npm i`
4
4
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)
6
6
7
7
--ignore-scripts disables running scripts like postinstall defined in the target package.json, download only
8
+
-D as devDependency
8
9
9
10
10
11
## `npm i pac`
11
12
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
13
18
14
19
## `npm update`
15
20
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
17
23
18
24
## `npm i pac@latest`
19
25
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
0 commit comments