Skip to content

Commit

Permalink
fix: use -b in nvm install
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinKolarik committed May 8, 2024
1 parent 27d91a5 commit 336cc8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function updateNode () {
execSync(`cp -r ${NODE_MODULES_NVM} /`);

// Install the requested version.
execSync(`\\. $NVM_DIR/nvm.sh && nvm install ${WANTED_VERSION} && nvm alias default ${WANTED_VERSION}`, { env: { NVM_DIR }, stdio: 'inherit' });
execSync(`\\. $NVM_DIR/nvm.sh && nvm install -b ${WANTED_VERSION} && nvm alias default ${WANTED_VERSION}`, { env: { NVM_DIR }, stdio: 'inherit' });

// Symlink the new version to the default location to make the change permanent.
const newNodePath = execSync(`\\. $NVM_DIR/nvm.sh && nvm which ${WANTED_VERSION}`, { env: { NVM_DIR } }).toString().trim();
Expand Down

0 comments on commit 336cc8a

Please sign in to comment.