2019-05-04 09:45:53 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
# These are the versions installed and hence cached by proxy-build.
|
|
|
|
|
2021-03-12 07:41:44 +01:00
|
|
|
# Run commands we want to cache downloads for.
|
2019-05-04 09:45:53 +02:00
|
|
|
|
2021-03-12 07:41:44 +01:00
|
|
|
# Get index into cache for lookups of expected versions. Uncompressed.
|
2019-05-04 09:45:53 +02:00
|
|
|
curl --location --fail https://nodejs.org/dist/index.tab &> /dev/null
|
2021-03-12 07:41:44 +01:00
|
|
|
curl --location --fail https://nodejs.org/download/nightly/index.tab &> /dev/null
|
2019-05-04 09:45:53 +02:00
|
|
|
|
|
|
|
# Using 4.9.1 as a well known old version (which is no longer getting updated so does not change)
|
|
|
|
n --download 4
|
|
|
|
n --download lts
|
|
|
|
n --download latest
|
2019-08-04 06:33:45 +02:00
|
|
|
n --download nightly/latest
|
2022-07-16 06:03:35 +02:00
|
|
|
N_NODE_MIRROR=https://npmmirror.com/mirrors/node n --download 6.11
|