
安装nodejs、npm、pnpm教程
Linux系统(Ubuntu或Debian)
NodeJS 和 npm
# 安装nodejs
# Download and install nvm:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
# in lieu of restarting the shell
\. "$HOME/.nvm/nvm.sh"
# Download and install Node.js:
nvm install 22
# Verify the Node.js version:
node -v # Should print "v22.19.0".
nvm current # Should print "v22.19.0".
# Verify npm version:
npm -v # Should print "10.9.3".
pnpm
curl -fsSL https://get.pnpm.io/install.sh | sh -
# 安装完之后要刷新下环境变量
source .zshrc
本文是原创文章,采用 CC BY-NC-ND 4.0 协议,完整转载请注明来自 棉花糖先生
评论
匿名评论
隐私政策
你无需删除空行,直接评论以获取最佳展示效果