Add new chapter on Node commands

This commit is contained in:
James Skemp 2019-11-03 08:51:05 -06:00
parent 38233f8137
commit 14b2cb7b1c
3 changed files with 31 additions and 0 deletions

7
README.md Normal file
View File

@ -0,0 +1,7 @@
# book-cmds
This project supports cmds.jamesrskemp.com, which is a collection of varous commands, for various programs.
Git-specific commands are documented at [git.jamesrskemp.com](https://git.jamesrskemp.com).
This site is possible thanks to [mdbook](https://github.com/rust-lang/mdBook) and [GitLab pages](https://about.gitlab.com/product/pages/).

View File

@ -1,3 +1,4 @@
# Summary
- [Node Commands](./node.md)
- [Chapter 1](./chapter_1.md)

23
src/node.md Normal file
View File

@ -0,0 +1,23 @@
# Node
Upgrade npm
```
npm install npm@latest -g
```
## Global Packages
Find all globally installed packages
```
npm ls -g --depth 0
```
Install/update a package globally
```
npm install http-server -g
```
Find outdated global packages
```
npm outdated -g --depth=0
```