There are dozen of half solutions or automatically closed subject WITH NO definitive answers:
https://discuss.circleci.com/search?q=nvm
We need nvm to work for ALL commands not just while doing this:
- run:
command: |
export NVM_DIR="/opt/circleci/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
nvm install 10
node -v
npm -v
npm i -g npm@6.9.0
npm -v
Right now any other step wonât get the correct node version!