Add additional npm commands

This commit is contained in:
James Skemp 2023-03-30 11:17:43 -05:00
parent bc6e65a7e0
commit b51827675e
1 changed files with 12 additions and 0 deletions

View File

@ -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
```