0
0
mirror of https://github.com/tj/n.git synced 2024-11-22 11:37:26 +01:00
n/test/tests/install-reference-versions.bash
John Gee f1d0dd5a22
Rework activate to support more configurations (#657)
* Rework activate to be (much) more explicit. Add archlinux image. Remove need for rsync.

* Reword use case without npm
2021-03-12 19:41:44 +13:00

17 lines
608 B
Bash
Executable File

#!/usr/bin/env bash
# These are the versions installed and hence cached by proxy-build.
# Run commands we want to cache downloads for.
# Get index into cache for lookups of expected versions. Uncompressed.
curl --location --fail https://nodejs.org/dist/index.tab &> /dev/null
curl --location --fail https://nodejs.org/download/nightly/index.tab &> /dev/null
# 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
n --download nightly/latest
N_NODE_MIRROR=https://npm.taobao.org/mirrors/node n --download 6.11