Skip to content

Commit 6b76580

Browse files
committed
Add node.js README entry
1 parent ad0285a commit 6b76580

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@ To install composer dependencies, run:
4141

4242
- The `--rm` flag ensures that that intermediate (temporary) containers are deleted once you install packages (to save disk space).
4343

44+
---
45+
46+
To install npm packages, run:
47+
48+
docker-compose run --rm yarn add [name-of-package]
49+
50+
- `yarn` is faster than `npm` and contains a lockfile (`yarn.lock`), for deterministic dependency resolution.
51+
4452

4553
# How-to (advanced)
4654

0 commit comments

Comments
 (0)