Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion install/install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,9 @@ $prefix = Join-Path $InstallDir "npm"
New-Item -ItemType Directory -Path $prefix -Force | Out-Null
# npm resolves `node` from PATH, so put the selected Node first.
# DevSpace and its dependencies ship prebuilt binaries, so no install scripts are needed.
# --prefer-online revalidates cached metadata, so a rerun right after a release installs that release.
$env:Path = "$NodeDir;$env:Path"
& $Npm install --global --prefix $prefix --ignore-scripts --no-fund --no-audit --no-update-notifier --loglevel=error $PackageSpec
& $Npm install --global --prefix $prefix --ignore-scripts --prefer-online --no-fund --no-audit --no-update-notifier --loglevel=error $PackageSpec
if ($LASTEXITCODE -ne 0) { throw "npm install failed." }

$packageDir = Join-Path $prefix "node_modules\$Package"
Expand Down
3 changes: 2 additions & 1 deletion install/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,9 @@ install_package() {
mkdir -p "$INSTALL_DIR/npm"
# npm's shebang resolves `node` from PATH, so put the selected Node first.
# DevSpace and its dependencies ship prebuilt binaries, so no install scripts are needed.
# --prefer-online revalidates cached metadata, so a rerun right after a release installs that release.
PATH="$NODE_BIN_DIR:$PATH" "$NODE_BIN_DIR/npm" install --global --prefix "$INSTALL_DIR/npm" \
--ignore-scripts --no-fund --no-audit --no-update-notifier --loglevel=error "$PACKAGE_SPEC"
--ignore-scripts --prefer-online --no-fund --no-audit --no-update-notifier --loglevel=error "$PACKAGE_SPEC"
}

write_launchers() {
Expand Down
Loading