Skip to content

Commit e6494ec

Browse files
committed
install as an alias
1 parent 827035b commit e6494ec

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

general/npm/readme.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,21 @@ latest is the default tag for the latest version of a package on npm.
66

77
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)
88

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)
1211

1312
## `npm i pac`
1413

1514
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
1615

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"
1924

2025
## `npm update pac`
2126

0 commit comments

Comments
 (0)