Mac安装node.js:修订间差异
跳到导航
跳到搜索
(创建页面,内容为“安装如下工具 # brew # nvm # node.js === brew === /bin/zsh -c "$(curl -fsSL <nowiki>https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh</nowiki>)" brew -v === nvm === export HOMEBREW_NO_INSTALL_CLEANUP=TRUE brew cleanup nvm brew install nvm echo "source $(brew --prefix nvm)/nvm.sh" >> .zsh_profile . ~/.zsh_profile nvm -v === node.js === nvm install 12.18.0 nvm list 分类:Develop 分类:Web”) |
(→brew) |
||
第7行: | 第7行: | ||
=== brew === | === brew === | ||
/bin/zsh -c "$(curl -fsSL <nowiki>https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh</nowiki>)" | /bin/zsh -c "$(curl -fsSL <nowiki>https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh</nowiki>)" | ||
# 不需要安装 Core、Cask、services | |||
brew -v | brew -v | ||
2024年1月24日 (三) 16:17的最新版本
安装如下工具
- brew
- nvm
- node.js
brew
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)" # 不需要安装 Core、Cask、services brew -v
nvm
export HOMEBREW_NO_INSTALL_CLEANUP=TRUE brew cleanup nvm brew install nvm echo "source $(brew --prefix nvm)/nvm.sh" >> .zsh_profile . ~/.zsh_profile nvm -v
node.js
nvm install 12.18.0 nvm list