Skip to content

Commit

Permalink
Fix Windows install script NPM/Node version clash (#1662)
Browse files Browse the repository at this point in the history
* Fix NPM/Node version clash

* Update install-scrypted-dependencies-win.ps1
  • Loading branch information
longzheng authored Dec 19, 2024
1 parent 0ea6b13 commit f3d7ebd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install/local/install-scrypted-dependencies-win.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ sc.exe stop scrypted.exe
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

# Install node.js
choco upgrade -y nodejs-lts --version=20.11.1
choco upgrade -y nodejs-lts --version=20.18.0

# Install VC Redist, which is necessary for portable python
choco install -y vcredist140
Expand All @@ -25,7 +25,7 @@ $SCRYPTED_WINDOWS_PYTHON_VERSION="-3.9"
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")

# Workaround Windows Node no longer creating %APPDATA%\npm which causes npx to fail
# Fixed in newer versions of NPM but not the one bundled with 20.11.1
# Fixed in newer versions of NPM but not the one bundled with Node 20
# https://github.com/nodejs/node/issues/53538
npm i -g npm

Expand Down

0 comments on commit f3d7ebd

Please sign in to comment.