Skip to content

Commit c689df6

Browse files
ryuheechulSimenB
authored andcommitted
Add an instruction for adding PATH for global modules (#624)
1 parent 0fae949 commit c689df6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/BestPractices.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ If you need to install global npm dependencies, it is recommended to place those
2525

2626
```Dockerfile
2727
ENV NPM_CONFIG_PREFIX=/home/node/.npm-global
28+
29+
ENV PATH=$PATH:/home/node/.npm-global/bin # optionally if you want to run npm global bin without specifying path
2830
```
2931

3032
## Handling Kernel Signals

0 commit comments

Comments
 (0)