I’ve already tried what is recommended here:
nvm-does-not-change-node-version-on-machine/28973/14
I have the following in config.yml
:
executors:
ubuntu:
machine:
image: ubuntu-2204:current
jobs:
build:
executor: ubuntu
steps:
- checkout
- run:
name: Enable Node Version Manager
command: echo ' [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >> $BASH_ENV
- run:
name: Set Default Node Version
command: nvm install 18; nvm alias default 18
- run:
name: Validate version
command: echo "Node is installed $(node -v)
The output is still showing the incorrect version
Node is installed v20.12.2