0

I have a project cloned to my local machine from GitHub which has

  "volta": {
    "node": "14.17.0",
    "yarn": "1.22.10"
  },

in its package.json file.

When I type node --version, terminal outputs v18.7.0.

How do I make volta change versions of node and yarn to the mentioned above?

madfcat
  • 74
  • 1
  • 9

1 Answers1

0

Volta automatically uses the correct yarn/node version if you cd into your folder. However, any yarn/node command will trigger Volta to install and use the pinned version if not installed.

Pirastrino
  • 170
  • 8