Skip to content

Commit

Permalink
Merge pull request #52 from Avivbens/change-node-default-version
Browse files Browse the repository at this point in the history
  • Loading branch information
Avivbens authored Feb 21, 2024
2 parents 9e79b87 + 4c144d6 commit 7f3209d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/commands/install/config/apps-groups/terminal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import {
NVM_COMMAND,
} from '../common-commands'

const DEFAULT_NODE_VERSION = '18.19.1'

export const TERMINAL_APPS: Readonly<IAppSetup[]> = [
{
name: 'NVM',
Expand All @@ -19,15 +21,15 @@ export const TERMINAL_APPS: Readonly<IAppSetup[]> = [
BREW_INSTALL('nvm'),
'\\. "$(brew --prefix)/opt/nvm/nvm.sh"',
`chmod +x $HOME/.nvm/nvm.sh`,
NVM_COMMAND('install 16.14.0'),
NVM_COMMAND('alias default 16.14.0'),
NVM_COMMAND(`install ${DEFAULT_NODE_VERSION}`),
NVM_COMMAND(`alias default ${DEFAULT_NODE_VERSION}`),
],
fallbackCommands: () => [
BROW_INSTALL('nvm'),
`\\. "$(${BROW_ALIAS} --prefix)/opt/nvm/nvm.sh"`,
`chmod +x $HOME/.nvm/nvm.sh`,
NVM_COMMAND('install 16.14.0'),
NVM_COMMAND('alias default 16.14.0'),
NVM_COMMAND(`install ${DEFAULT_NODE_VERSION}`),
NVM_COMMAND(`alias default ${DEFAULT_NODE_VERSION}`),
],
},
{
Expand Down

0 comments on commit 7f3209d

Please sign in to comment.