volta pin
The volta pin
command will update a project’s package.json
file to use the selected version of a tool.
NOTE
volta pin
only works with Node & Package Managers (e.g. npm or Yarn). For dependencies, you should use npm install
or yarn add
to update the selected versions.
The command has the following syntax:
Pins your project's runtime or package manager
USAGE:
volta pin [FLAGS] <tool[@version]>...
FLAGS:
--verbose Enables verbose diagnostics
--quiet Prevents unnecessary output
-h, --help Prints help information
ARGS:
<tool[@version]>... Tools to pin, like `node@lts` or `yarn@^1.14`.