Difference between revisions of "Nvm use"
Jump to navigation
Jump to search
(Created page with " nvm use [<version>] Modify PATH to use <version>. Uses .nvmrc if available and version is omitted. The following optional arguments, if provided,...") |
|||
(10 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | nvm use [<version>] Modify PATH to use <version>. Uses .nvmrc if available and version is omitted. | + | {{lc}} |
+ | |||
+ | [[nvm]] use 14 | ||
+ | Now using node v14.19.3 (npm v6.14.17) | ||
+ | |||
+ | [[nvm use 18]] | ||
+ | N/A: version "v18" is not yet installed. | ||
+ | |||
+ | You need to run `nvm install 18` to install and use it. | ||
+ | |||
+ | Solution: [[nvm install 18]] | ||
+ | |||
+ | |||
+ | [[nvm]] use [<version>] Modify PATH to use <version>. Uses [[.nvmrc]] if available and version is omitted. | ||
The following optional arguments, if provided, must appear directly after `nvm use`: | The following optional arguments, if provided, must appear directly after `nvm use`: | ||
--silent Silences stdout/stderr output | --silent Silences stdout/stderr output | ||
--lts Uses automatic LTS (long-term support) alias `lts/*`, if available. | --lts Uses automatic LTS (long-term support) alias `lts/*`, if available. | ||
--lts=<LTS name> Uses automatic alias for provided LTS line, if available. | --lts=<LTS name> Uses automatic alias for provided LTS line, if available. | ||
+ | |||
+ | |||
+ | == Related == | ||
+ | * <code>[[nvm alias default 14]]</code> | ||
+ | |||
+ | == See also == | ||
+ | * {{nvm}} | ||
+ | * {{Node.js}} | ||
+ | |||
+ | [[Category:NVM]] |
Latest revision as of 09:58, 30 June 2023
nvm use 14 Now using node v14.19.3 (npm v6.14.17)
nvm use 18 N/A: version "v18" is not yet installed. You need to run `nvm install 18` to install and use it. Solution: nvm install 18
nvm use [<version>] Modify PATH to use <version>. Uses .nvmrc if available and version is omitted. The following optional arguments, if provided, must appear directly after `nvm use`: --silent Silences stdout/stderr output --lts Uses automatic LTS (long-term support) alias `lts/*`, if available. --lts=<LTS name> Uses automatic alias for provided LTS line, if available.
Related[edit]
See also[edit]
- nvm:
nvm
[install | use | run | ls | ls-remote | alias ], .nvmrc, node --version, nvm alias default, brew install nvm, --help ]
- Node.js, JavaScript runtime, Deno, nock, next.js, express.js, electron, Nest.js, nvm,
package.json
, Webpack,node -r
,npm, nvm, node-gyp
, Node.js modules, Fastify, PM2, UnhandledPromiseRejectionWarning, node-inspector, Puppeteer, Node-config, Node-RED
Advertising: