TypeScript Mac配置
一、node安装
1.安装Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2.安装node
brew install node
3.安装成功
node使用
1.常用命令
查看版本号
$ npm -v
6.10.3
$ node -v
v12.9.0
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install node
查看版本号
$ npm -v
6.10.3
$ node -v
v12.9.0