Commit Graph

56 Commits

Author SHA1 Message Date
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
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
Alex Piechowski
f3773e5371 Add support for a default-npm-packages file
Partial Credit: https://github.com/asdf-vm/asdf-ruby/pull/35
2017-07-30 23:54:07 -05:00
vic
be1deeebd3 Use a more portable version sort.
On some linux's sort command does not take the `-V` option (Alpine base image with busybox). Use a more portable `sort_versions` from rbenv. Also I guess this removes the dependency on gsort in OSX.
2017-07-23 05:39:44 -05:00
peter madsen
adef6e617f support arm 64bit (arm8)
uname -m returns aarch64 on arm8.

however nodejs serves the file as 'arm64' (eg. https://nodejs.org/dist/v6.10.3/node-v6.10.3-linux-arm64.tar.xz)

the arm6 and arm7 filenames looks to be correct.
2017-05-06 22:12:32 +02:00
Daniel Perez
eeaae91251 Merge pull request #39 from jechol/master
Change keyserver to ipv4.pool.sks-keyservers.net
2017-05-06 19:12:57 +09:00
jechol
4a4138ddb3 Change keyserver to ipv4.pool.sks-keyservers.net 2017-04-17 11:54:00 +09:00
Robin Schneider
7e3e6e53ff
Use ASDF_DIR environment variable if available
Related to: https://github.com/asdf-vm/asdf/pull/156
2017-03-16 23:02:02 +01:00
Akash Manohar
eedcc35d67 Merge pull request #32 from MSch/patch-1
Add support for .node-version
2017-02-26 13:11:16 +05:30
Martin Schürrer
ffed40a438 Add support for .node-version
Used by avn, nodenv and ndenv
2017-02-24 00:48:10 +01:00
Zura Guerra
fed3e97b69 Change some commands in the install script to make it work for both Linux and MacOS 2017-02-22 17:35:31 -06:00
Robin Schneider
2d0460219d
mktemp on OSX only supports short command line parameters Oo
Related to: #15
2017-02-21 00:21:31 +01:00
Robin Schneider
2d0a443ad2
Fix CI testing of signatures/checksums checking
Fixes: #25
2017-02-20 19:21:05 +01:00
Akash Manohar
cf582889e7 Merge pull request #25 from ypid/feature/check_openpgp_signatures
Check signatures/checksums to ensure authenticity
2017-02-20 23:16:23 +05:30
Robin Schneider
001999f36c
Give user hint if trust might not be bootstrapped yet to ease upgrade 2017-02-20 08:39:49 +01:00
Akash Manohar
0b15cadbbd Merge pull request #24 from fazibear/fix-file-modes
Fix bin file mode
2017-02-20 11:52:18 +05:30
Robin Schneider
6c8bb8c9f4
Optimize script: Fix remaining shellcheck warnings, clean up /tmp 2017-02-20 06:58:03 +01:00
Robin Schneider
c213d9c20e
Check signatures/checksums to ensure authenticity
Please refer to [Verifying Node.js Binaries](https://blog.continuation.io/verifying-node-js-binaries/)
for why this is important.

Related to: https://github.com/asdf-vm/asdf/issues/158
Mitigates: https://github.com/nodejs/node/issues/9859
Mitigates: https://github.com/nodejs/node/issues/6821

Implementing this feature required some rework of the `install` script
which is included in this PR. The following other PR are
superseded/included in this one:

Closes: #15
Closes: #16
Closes: #19

Note that this PR also updates the base download URL from
"http://nodejs.org/dist" to "https://nodejs.org/dist" meaning that
before this PR (or #16 which is not merged), binaries where downloaded
over plain legacy HTTP! (those binaries where later executed by the
user). This is really bad and is fairly easy to exploit!

Related to: https://github.com/creationix/nvm/pull/736
Related to: https://github.com/creationix/nvm/issues/793
2017-02-20 06:58:02 +01:00
Robin Schneider
ae0c4205c7
Upgrade URL schema to HTTPS for list-all
Related to: #16
2017-02-20 06:57:08 +01:00
Akash Manohar
c1199f6810 Merge pull request #16 from edupc/master
Change install script to use https on package download
2017-02-20 10:05:58 +05:30
Michał Kalbarczyk
277347bc8a
Fix bin file mode 2017-02-10 22:42:21 +01:00
André Ligné
d737bf189d Add support for selecting version from nvmrc 2016-12-05 09:49:53 +01:00
Trevor Brown
d4d3a126b7 Add 0.10.x and 0.11.x nodejs versions to list-all script. 2016-10-04 14:03:23 -04:00
Eduardo Cunha
85cbe3b496 Change install script to use https on package download 2016-05-30 23:02:38 -03:00
Akash Manohar J
abc472cc1e Revert back version sorting 2016-03-12 22:29:48 +05:30
Akash Manohar J
446ffb7cbc Sort in reverse order 2016-03-12 21:48:58 +05:30
Rico Sta. Cruz
d7005d4cd2 list-all: fetch versions from semver.io 2016-02-15 08:31:14 +08:00
Akash Manohar
4f850e5e49 Update git url 2016-02-09 22:40:09 +05:30
Yurii Bodarev
a9f7c732ef Add Node.js 5.5.0 version to the list 2016-01-31 22:07:10 +02:00
Nick Gal
036b831659 Add 5.4.1 to versions_list 2016-01-13 18:36:59 -08:00
Yurii Bodarev
1f32717051 Node version 5.4.0 added
https://github.com/nodejs/node/blob/v5.4.0/CHANGELOG.md
2016-01-07 18:38:18 +02:00
Akash Manohar J
7cf59c1454 Move the hook script from python to node.js
Some environments like containers don't have Python installed.
2016-01-05 11:27:03 +05:30
Justin
daaac9f4bf Added more Node versions
Added all the missing ones which are currently listed here:

https://nodejs.org/dist/
2015-12-23 12:40:18 +01:00
Akash Manohar J
286e8055d2 Fix condition 2015-12-23 05:44:18 +05:30
Akash Manohar J
ec1aca10ba Fix bin names #6 2015-12-22 22:35:59 +05:30