1. 安装 Node-version-manager 来管理和使用 Node.js 的版本
// install nvm
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
// 列出所有可安装的 node 版本
nvm ls-remote
// 安装指定版本的 node
nvm install {version_number}
有时候,我们需要 yarn 来代替 npm
brew install yarn --without-node
2. 安装 jupyter-notebook 的 javascript kernel
brew install pkg-config zeromq // Mac 下必须安装的包
pip install pyzmq jupyter
yarn global add ijavascript
ijsinstall
网友评论