Commit Graph

4 Commits

Author SHA1 Message Date
Thomas B Homburg
4b6591e3bb Fix .default-npm-packages install location 2020-05-08 15:01:03 +02:00
Trevor Brown
8c0e102c56
Correct ASDF_INSTALL_PATH check. 2018-10-25 12:15:57 -04:00
Michael Clark
609fe16682 Fixes #85 - system npm fails to run via asdf
`.asdf/bin/private/asdf-exec` sets `$ASDF_INSTALL_PATH` to the result of
`find_install_path` in `.asdf/lib/utils.sh` - which, if version is
`"system"` (which it is for the system nodejs, of course), returns an
empty string. This then, is passed to
`.asdf/plugins/nodejs/bin/exec-env`, and, if `$NPM_CONFIG_PREFIX` is
`""`, it is set to `$ASDF_INSTALL_PATH/.npm` - resulting in `"/.npm"`.

In my shell w/o `asdf` enabled which can run `npm`, `$NPM_CONFIG_PREFIX`
is blank; therefore a possible patch would be to only set
`$NPM_CONFIG_PREFIX` if it is blank _and_ `$ASDF_INSTALL_PATH` is _not_.
2018-07-18 16:18:39 -06:00
Akash Manohar J
19edf42920 Initial commit with nodejs plugin 2015-05-24 09:56:04 +05:30