pnpm env <cmd> | pnpm


本站和网页 https://pnpm.io/cli/env 的作者无关,不对其内容负责。快照谨为网络故障时之索引,不代表被搜索网站的即时页面。

pnpm env <cmd> | pnpm
Skip to main contentpnpmDocsBlogFAQBenchmarksCommunityMoreBlogFAQCommunityBenchmarks8.xNext8.x7.xEnglishEnglishItaliano (73%)简体中文 (90%)日本語 (71%)한국어 (61%)Português Brasileiro (69%)正體中文 (45%)Русский (42%)Українська (11%)Français (48%)Türkçe (26%)Español (59%)Bahasa Indonesia (32%)Help Us Translate🧡 Sponsor UsOpen CollectiveGitHub SponsorsCrypto DonationsSearchIntroductionUsageCLI commandsManage dependenciesPatch dependenciesReview dependenciesRun scriptsManage environmentspnpm env <cmd>Misc.ConfigurationFeaturesRecipesAdvancedCLI commandsManage environmentspnpm env <cmd>Version: 8.xOn this pagepnpm env <cmd>Manages the Node.js environment.
dangerpnpm env does not include the binaries for Corepack. If you want to use Corepack to install other package managers, you need to install it separately (e.g. pnpm add -g corepack).
Commands​
use​
Install and use the specified version of Node.js
Install the LTS version of Node.js:
pnpm env use --global lts
Install Node.js v16:
pnpm env use --global 16
Install a prerelease version of Node.js:
pnpm env use --global nightlypnpm env use --global rcpnpm env use --global 16.0.0-rc.0pnpm env use --global rc/14
Install the latest version of Node.js:
pnpm env use --global latest
Install an LTS version of Node.js using its codename:
pnpm env use --global argon
add​
Added in: v8.9.0
Installs the specified version(s) of Node.js without activating them as the current version.
Example:
pnpm env add --global lts 18 20.0.1
remove, rm​
Removes the specified version(s) of Node.JS.
Usage example:
pnpm env remove --global 14.0.0pnpm env remove --global 14.0.0 16.2.3
list, ls​
List Node.js versions available locally or remotely.
Print locally installed versions:
pnpm env list
Print remotely available Node.js versions:
pnpm env list --remote
Print remotely available Node.js v16 versions:
pnpm env list --remote 16
Options​
--global, -g​
The changes are made systemwide.Edit this pagePreviouspnpm startNextpnpm publishCommandsuseaddremove, rmlist, lsOptions--global, -gDocsGetting Startedpnpm CLIWorkspace.npmrcCommunityUser ShowcaseProject ChatTwitterMastodonYouTubeRedditDEVHashnodeKeybaseContributingGitHubHelp Us TranslateCopyright © 2015-2023 contributors of pnpm

Copyright ©uecom 京ICP备18064371号-1 IPV6
2024-03-29 19:45:03
uenu.com
10.0.12.16