Add additional npm commands
This commit is contained in:
parent
bc6e65a7e0
commit
b51827675e
12
src/node.md
12
src/node.md
|
@ -5,6 +5,11 @@ Upgrade npm
|
|||
npm install npm@latest -g
|
||||
```
|
||||
|
||||
View versions of a package
|
||||
```bash
|
||||
npm view package-name versions
|
||||
```
|
||||
|
||||
## Global Packages
|
||||
|
||||
Find all globally installed packages
|
||||
|
@ -27,3 +32,10 @@ Find any production packages with vulnerabilities. Id est, ignore any developmen
|
|||
```bash
|
||||
npm audit --production
|
||||
```
|
||||
|
||||
Determine why a package is required.
|
||||
```bash
|
||||
npm why package-name
|
||||
```
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue