Remove --unsafe-perm flag from install scripts (#7953)

npm 12 rejects unknown CLI flags, so the npm install path crashes
with EUNKNOWNCONFIG before installing. The flag has been a no-op
since npm 7; remove it from install.sh and the postinstall guard.
This commit is contained in:
Anthony Holten
2026-08-19 17:18:20 -04:00
committed by GitHub
parent c22dc74d53
commit 876304f95f
2 changed files with 2 additions and 16 deletions

View File

@@ -436,7 +436,7 @@ install_npm() {
fi
echoh "Installing with npm."
echoh
"$sh_c" "$NPM_PATH" install -g "code-server@$VERSION" --unsafe-perm
"$sh_c" "$NPM_PATH" install -g "code-server@$VERSION"
NPM_BIN_DIR="\$($NPM_PATH bin -g)" echo_npm_postinstall
return
fi