mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 11:25:16 +08:00
npm, npm-install: add instructions on how to install to a non-root location (#21807)
This commit is contained in:
@@ -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
@@ -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]}}`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user