Add new chapter on Node commands
This commit is contained in:
parent
38233f8137
commit
14b2cb7b1c
|
@ -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/).
|
|
@ -1,3 +1,4 @@
|
|||
# Summary
|
||||
|
||||
- [Node Commands](./node.md)
|
||||
- [Chapter 1](./chapter_1.md)
|
||||
|
|
|
@ -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
|
||||
```
|
Loading…
Reference in New Issue