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-5Lines changed: 10 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -6,16 +6,21 @@ latest is the default tag for the latest version of a package on npm.
6
6
7
7
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)
8
8
9
-
-`--ignore-scripts` disables running scripts like postinstall defined in the target package.json, download only
10
-
-`--production` install only production dependencies (not devDependencies)
11
-
9
+
-`--ignore-scripts` disables running scripts like postinstall defined in the target package.json, download only
10
+
-`--production` install only production dependencies (not devDependencies)
12
11
13
12
## `npm i pac`
14
13
15
14
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
16
15
17
-
-`-D` as devDependency
18
-
-`-g` run command globally
16
+
-`-D` as devDependency
17
+
-`-g` run command globally
18
+
19
+
### install as an alias
20
+
21
+
`npm i alias@npm:actualused`
22
+
23
+
Allows you to import "alias" in your code while actually importing the "actualused"
0 commit comments