Skip to content

Commit 25811c4

Browse files
Install bumped version of node if needed 💿 (#151)
Sometimes, you need to install the new node version you're trying to setup 😅
1 parent 44784ad commit 25811c4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/bump-dependencies.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const {syncGithub} = require('./core/github');
2020
const {findLatest} = require('./core/node');
2121
const {makeError, formatEventualSuffix} = require('./core/utils');
2222

23-
const LOAD_NVM = '. ${NVM_DIR:-$HOME/.nvm}/nvm.sh && nvm use'; // eslint-disable-line no-template-curly-in-string
23+
const LOAD_NVM = '. ${NVM_DIR:-$HOME/.nvm}/nvm.sh && (nvm use || nvm install)'; // eslint-disable-line no-template-curly-in-string
2424

2525
const bumpNodeVersion = async (latestNode, config) => {
2626
process.stdout.write(c.bold.blue(`\n\n⬆️ About to bump node version:\n`));

0 commit comments

Comments
 (0)