script & docs for homebrew whistle
- 优先使用Homebrew内置的nodejs,Homebrew nodejs 默认命令在
/usr/local/bin/node
export PATH=/usr/local/bin:$PATH w2 start/stop/restart
- 如果whistle npm版本更新了,whistle Homebrew未更新,可以通过以下方式安装最新版本:
# 更新本地whistle描述文件
curl -s https://raw.githubusercontent.com/echopi/homebrew-whistle/master/brew-local-update.sh | bash -s --
# 更新
brew upgrade whistle
- 更新Homebrew nodejs版本
brew list node
brew info node
brew update
brew upgrade node
whistle npm更新版本后,需要更新 homebrew-core 的whistle描述文件。
在macOS/Linux环境下执行以下命令:
sh -c "$(curl -s https://raw.githubusercontent.com/echopi/homebrew-whistle/master/brew-pr.sh)"
非macOS/Linux环境需要手动提交pr到 homebrew-core。通过执行node脚本获得新的url、sha256:
yarn
node brew-pr.js