Skip to content

Commit 3c7caa0

Browse files
Merge pull request #306 from rancher-sandbox/update-windows-setup-to-use-node-14
Use Node.js v14 on Windows
2 parents b6f5216 + 0280fbf commit 3c7caa0

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Rancher can be built from source on macOS or Windows. The following provides som
3434

3535
### Prerequisites
3636

37-
Rancher Desktop is an [electron](https://www.electronjs.org/) and [node.js](https://nodejs.org/) application. node.js needs to be installed to build the source.
37+
Rancher Desktop is an [electron](https://www.electronjs.org/) and [node.js](https://nodejs.org/) application. node.js v14 needs to be installed to build the source.
3838

3939
The following is a breakdown of the pre-requisites for each platform. These need to be installed first.
4040

@@ -82,8 +82,8 @@ You are now ready to clone the repository and run `npm install`.
8282
2. Install git and nvm via `scoop install git nvm`
8383
3. Add the old versions bucket via `scoop bucket add versions`
8484
4. Install nvm and Python 2 via `scoop install python27`
85-
5. Install NodeJS via `nvm install latest`
86-
* Remember to use it by running `nvm use $(nvm list)`
85+
5. Install NodeJS via `nvm install 14.17.0`
86+
* Remember to use it by running `nvm use 14.17.0`
8787
5. Configure NPM to use the version of MSBuild installed:
8888
```powershell
8989
npm config set msbuild_path "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe"

scripts/windows-setup.ps1

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,11 @@ if (!$SkipTools) {
5353
# support); however, PowerShell will see _anything_ going to stderr and
5454
# treat the result as fatal. Redirect the output so we can continue.
5555
scoop install nvm python27 2>&1
56-
nvm install latest
57-
nvm use $(nvm list | Where-Object { $_ } | Select-Object -First 1)
56+
# Temporarily commented out until we can handle later versions of node.js:
57+
# nvm install latest
58+
# nvm use $(nvm list | Where-Object { $_ } | Select-Object -First 1)
59+
nvm install 14.17.0
60+
nvm use 14.17.0
5861
}
5962
}
6063

0 commit comments

Comments
 (0)