npm, npm-install: add instructions on how to install to a non-root location (#21807)

This commit is contained in:
Managor
2026-04-01 10:07:01 +03:00
committed by GitHub
parent 0b0bcb280c
commit 85d6d962b0
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -15,6 +15,6 @@
`npm {{[i|install]}} {{package_name}} {{[-D|--save-dev]}}`
- Download the latest version of a package and install it globally:
- Download the latest version of a package and install it globally (set install location with `npm config set prefix`):
`npm {{[i|install]}} {{package_name}} {{[-g|--global]}}`
+1 -1
View File
@@ -20,7 +20,7 @@
`npm {{[i|install]}} {{package_name}} {{[-D|--save-dev]}}`
- Download the latest version of a package and install it globally:
- Download the latest version of a package and install it globally (set the install location with `npm config set prefix`):
`npm {{[i|install]}} {{package_name}} {{[-g|--global]}}`