Commit Graph

89 Commits

Author SHA1 Message Date
Thomas B Homburg
4b6591e3bb Fix .default-npm-packages install location 2020-05-08 15:01:03 +02:00
Ryan Roden-Corrent
dd80ca0fbf
Align install PGP warning with README
If you haven't imported the necessary PGP keys, the installer will print an error about "bootstrapping trust" and direct you to the README. However, the words "bootstrap" and "trust" never appear in the README.

This adjusts the warning to include some words that you can actually search the README for.
2020-02-25 16:01:05 -05:00
Trevor Brown
c975636239 Remove hardcoded plugin name and replace with variable
Fixes issue #20
2020-01-14 09:54:39 -05:00
Trevor Brown
7b4f11365a Hide gpg signature trust warning 2019-12-20 10:32:47 -05:00
Trevor Brown
3fb3356b65 Use gpg2 if gpg command is missing 2019-12-19 10:06:12 -05:00
Thibaut Barrère
5244d19cdd
Update link to list of keys 2019-10-18 16:28:07 +02:00
Ryan Bigg
ad152f3b72 Use 'command' over 'which' to check for shasum
'command' is a shell builtin on all current shells

'which' is not builtin to bash, and if the node 'which' package is installed, that package may interfere

See https://github.com/asdf-vm/asdf-nodejs/issues/137 for an example of that interference
2019-10-03 14:44:10 +10:00
Rohan Talip
b48c4bcffd
Updated postinstall to fix typo 2019-06-03 13:18:07 -07:00
Thomas B Homburg
7677cbfa78 Get command exit code without exiting 2019-05-03 13:16:52 +02:00
Thomas B Homburg
1656548338 Fix bash ansi color output 2019-05-03 13:14:59 +02:00
David Nicolson
6188c0dc71 Use UTF-8 for output 2019-02-24 21:35:15 +01:00
David Nicolson
fd44dc4c7f Use UTF-8 for output 2019-02-03 17:09:29 +01:00
Lukas Elmer
441d9f857e
add option to temporarily disable reshimming 2019-01-23 19:02:33 +01:00
Joseph Snell
38f3db2dad add new release team key from nodejs (#115) 2019-01-04 10:19:58 -05:00
Trevor Brown
641ae61e61
Add more release team keys (#114)
Fixes #112
2018-12-21 09:23:32 -05:00
Nicola Brisotto
494bc93eff Add --no-tty to GPG commands (#108)
Solve #107
2018-12-09 21:59:37 -05:00
Trevor Brown
ad7e1bbed0
Fix conditional for http_proxy check (#109)
* Fix conditional for `http_proxy` check
* Make variable presence optional
2018-12-06 15:05:56 -05:00
Trevor Brown
f7e82ef14a
Merge pull request #84 from FreedomBen/shasum-missing-fix
Add handling for missing shasum
2018-12-02 14:29:15 -05:00
Trevor Brown
42782e08f4
Merge pull request #90 from EmilienMottet/master
gpg use proxy env variasble if it set
2018-11-15 09:23:06 -05:00
Devin Weaver
d18287b041
Speed up npm global installs
Per issue #46 the `ASDF_INSTALL_VERSION` variable is not available in global NPM installs. Instead the `npm_config_node_version` is provided by NPM during this situation.

This change offers a fallback in these cases. Since a version will be available this will significantly speed up the postinstall during global NPM installs.

Fixes #46
2018-11-07 11:09:35 -05:00
Trevor Brown
8c0e102c56
Correct ASDF_INSTALL_PATH check. 2018-10-25 12:15:57 -04:00
Trevor Brown
2da40fdf6f
Merge pull request #86 from mclark-newvistas/master
Fixes #85 - system npm fails to run via `asdf`
2018-10-25 12:14:55 -04:00
Ondrej Galbavy
d49479dbc4 Show proper error on invalid requested version 2018-10-20 20:42:40 +02:00
Robert Sköld
dcf2ff9769
Update parse-legacy-file
Fixes issue with reading legacy file in directories with space
2018-10-18 10:34:49 +02:00
Emilien Mottet
b5ee2365a0 add optionnal proxy for gpg 2018-08-03 10:52:09 +02:00
David Bernheisel
9d323d367d Do it in both places 2018-07-23 16:45:56 -04:00
David Bernheisel
2346013a9e Make it consistent 2018-07-23 16:38:31 -04:00
David Bernheisel
06869f9483 Correct address 2018-07-23 16:34:29 -04:00
David Bernheisel
bc3534b5df Add more keyservers 2018-07-23 15:18:18 -04:00
Trevor Brown
0f4ab109a2
Merge pull request #77 from SunDoge/set-mirror
Allow setting nodejs mirror url
2018-07-19 09:45:26 -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
Benjamin Porter
3bcfc82506 Add handling for missing shasum
On some platforms, including Fedora and derivatives, and Arch and
derivatives, the binary `shasum` does not exist.  Instead, sha256sum
should be used.

This patch checks for the existence of sha256sum, as well as shasum,
and uses whichever is present.  If none are present, a helpful error
message is printed out.

Tested on Fedora 28
  - Scenarios tested:

    -------------------------------
    | Sha256sum | shasum | Works? |
    |    Yes    |   No   |  Yes   |
    |    No     |   Yes  |  Yes   |
    |    Yes    |   Yes  |  Yes   |
    |    No     |   No   |  Yes   |
    -------------------------------
2018-06-28 19:26:05 -06:00
Jeff Wood
07700847c5 Update release & previous keyring scripts to match current teams for NodeJS 2018-06-25 10:15:00 -07:00
Trevor Brown
d98745d9a5
Move path to installed Node.JS binaries to the front of PATH 2018-06-14 08:23:31 -04:00
Trevor Brown
aef9e98561
Merge pull request #76 from b0o/67-install-default-npm-packages-path
Fix issue #67: Default packages don't install correctly
2018-06-06 10:55:01 -04:00
SunDoge
3d6c468770 ok to set taobao mirror 2018-05-12 01:25:18 +08:00
Maddison Hellstrom
6e8fc1fbab Override PATH env when calling npm install
A bug existed where, if no versions of `node` and `npm` are installed
already, running `asdf install node <version>` while having any packages
listed inside `.default-npm-packages` would fail to install those
default packages because the newly installed node version's `bin`
directory is not in the `PATH` yet.

Fixes #67
2018-05-04 22:43:28 -07:00
Andrew Thauer
7b6df2d0c6 Fix Issue #56: Can't install latest version of npm globally
This works in tandom with a change in asdf core that will look for the
exec-path command and use it appropriately when found to conditionally
route the npm & npx commands to the correct executable path.
2018-04-25 22:32:34 -04:00
Harald
7eea231571 use explicit hkp to port 80
avoid timeout on system where port 11371 is blocked
2018-02-21 14:37:20 +01:00
Trevor Brown
c8f4518fc0
asdf reshim expects a plugin name and version. 2018-02-19 15:01:26 -05:00
Trevor Brown
9443d406db
Merge pull request #54 from taiansu/master
Support vX.X.X version name in legacy version file
2018-02-19 09:03:38 -05:00
Randy Stauner
6ea988b663 Show error message when gpg is not found
fixes #61
2018-02-13 08:34:12 -07:00
Trevor Brown
1950ad3fed
Merge pull request #50 from pachonk/default-npm-packages
Add support for a default-npm-packages file
2017-12-18 11:40:19 -05:00
Trevor Brown
c7ebeffe99
Merge pull request #41 from petermm/patch-1
support arm 64bit (arm8)
2017-12-18 11:16:01 -05:00
Nick Veys
e0513ca999 Try multiple keyservers before failing import 2017-11-08 16:25:13 -06:00
Jonathan Knapp
26c38fdc6e
Adding new trusted release key
Brought in in commit [add Gibson Fahnestock to Release team](46ca1775a3 (diff-04c6e90faac2675aa89e2176d2eec7d8))
2017-10-31 15:14:45 -04:00
Tai An Su
2e1ca0e15b Support vX.X.X version name 2017-09-26 00:24:56 +08:00
Victor Borja
31e60f839f Set executable bit for postinstall 2017-09-04 03:33:00 -05:00
Victor Borja
b900533294 Set executable bit for list-bin-paths 2017-09-04 03:31:47 -05:00
Daniel Perez
d182dca840 Use list-bin-paths instead of custom hook 2017-08-19 14:34:09 +09:00