Archived
1
0

Use version in npm install

Closes #4832.
This commit is contained in:
Asher 2024-07-12 16:23:29 -08:00
parent f2c326147d
commit d9812a5970
No known key found for this signature in database
GPG Key ID: D63C1EF81242354A

View File

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