summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOskar Nyberg <oskar@mullvad.net>2022-04-22 10:22:13 +0200
committerOskar Nyberg <oskar@mullvad.net>2022-04-22 10:22:13 +0200
commitf717972a515702f06e76a894d9dcda13932fe7db (patch)
tree6949b11a0913f255cf5a68afd6e43db3b19af23a
parente3cacce2d8d323e4401cf304107ab484c0283ec0 (diff)
parent6ee1fa47d7046d09bb719e849a4bbfe92d8dc9a9 (diff)
downloadmullvadvpn-f717972a515702f06e76a894d9dcda13932fe7db.tar.xz
mullvadvpn-f717972a515702f06e76a894d9dcda13932fe7db.zip
Merge branch 'switch-to-volta'
-rw-r--r--README.md13
-rwxr-xr-xci/buildserver-build.sh3
-rw-r--r--gui/package.json8
3 files changed, 15 insertions, 9 deletions
diff --git a/README.md b/README.md
index a6ffe5bd37..60a014aa3d 100644
--- a/README.md
+++ b/README.md
@@ -271,12 +271,17 @@ storePassword = keystore-password
1. *This can be skipped for Android builds*.
- Get the latest version 16 release of Node.js and the latest version of npm. The Node.js version
- is specified in `.nvmrc` and can be installed by running the following from any directory within
- this repository:
+ Any Node.js version above 16 and the latest npm version should work. The exact Node.js and NPM
+ versions that we target are specified in `package.json` in the `volta` section. Those versions
+ will be used automatically if volta is installed and setup.
+
+ To install Volta, run:
```
- nvm install --latest-npm
+ cargo install --git https://github.com/volta-cli/volta
+ volta setup
```
+ or follow the their instructions: https://github.com/volta-cli/volta.
+
If installing Node.js manually then the latest version of npm can be installed by running:
```
diff --git a/ci/buildserver-build.sh b/ci/buildserver-build.sh
index f72bc9f6a3..1902a4a6ad 100755
--- a/ci/buildserver-build.sh
+++ b/ci/buildserver-build.sh
@@ -103,9 +103,6 @@ build_ref() {
# Make sure we have the latest Rust and Node toolchains before the build
rustup update
- if command -v nvm > /dev/null; then
- nvm install --latest-npm
- fi
BUILD_ARGS=(--optimize --sign)
if [[ "$(uname -s)" == "Darwin" ]]; then
diff --git a/gui/package.json b/gui/package.json
index 60a4f67137..7cb4b38b9f 100644
--- a/gui/package.json
+++ b/gui/package.json
@@ -98,7 +98,11 @@
"pack:linux": "gulp pack-linux"
},
"engines": {
- "node": ">=12",
- "npm": ">=6.12"
+ "node": ">=16",
+ "npm": ">=8.3"
+ },
+ "volta": {
+ "node": "16.13.2",
+ "npm": "8.7.0"
}
}