mirror of
https://github.com/asdf-vm/asdf-nodejs.git
synced 2024-10-06 07:42:08 +08:00
Merge pull request #170 from brianvanburken/default-packages-location
Support non-default default-npm-packages location.
This commit is contained in:
commit
a5aa464e96
@ -69,6 +69,8 @@ request
|
||||
express
|
||||
```
|
||||
|
||||
You can specify a non-default location of this file by setting a `ASDF_NPM_DEFAULT_PACKAGES_FILE` variable.
|
||||
|
||||
## Temporarily disable reshimming
|
||||
|
||||
To avoid a slowdown when installing large packages (see https://github.com/asdf-vm/asdf-nodejs/issues/46), you can `ASDF_SKIP_RESHIM=1 npm i -g <package>` and reshim after installing all packages using `asdf reshim nodejs`.
|
||||
|
@ -267,7 +267,7 @@ verlte() {
|
||||
}
|
||||
|
||||
install_default_npm_packages() {
|
||||
local default_npm_packages="${HOME}/.default-npm-packages"
|
||||
local default_npm_packages="${ASDF_NPM_DEFAULT_PACKAGES_FILE:=$HOME/.default-npm-packages}"
|
||||
|
||||
if [ ! -f "$default_npm_packages" ]; then return; fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user