美文网首页
Mac 搭建 Nodejs 开发环境

Mac 搭建 Nodejs 开发环境

作者: 北冢 | 来源:发表于2018-09-07 03:01 被阅读0次

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

相关文章

网友评论

      本文标题:Mac 搭建 Nodejs 开发环境

      本文链接:https://www.haomeiwen.com/subject/bpvfgftx.html