diff options
| -rw-r--r-- | README.md | 13 | ||||
| -rwxr-xr-x | ci/buildserver-build.sh | 3 | ||||
| -rw-r--r-- | gui/package.json | 8 |
3 files changed, 15 insertions, 9 deletions
@@ -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" } } |
