折腾:
[已解决]mac中zsh command not found npm
期间,好像需要先去在mac上安装node.js
mac node.js 安装
node-lessons/lesson0 at master · alsotang/node-lessons
Node.js 安裝與版本切換教學 (for MAC) « icarus4’s blog
在Mac OS X下安装Node.js,你使用哪种方式? – CNode技术社区
mac 环境下安装node.js – 简单记录 – 51CTO技术博客
去官网:
双击安装
This package will install Node.js v4.4.7 and npm v2.15.8 into /usr/local/. |
安装完成:
Node.js was installed at /usr/local/bin/node npm was installed at /usr/local/bin/npm Make sure that /usr/local/bin is in your $PATH. |
然后去命令行测试,可以了:
➜ JiandaoWorkbench which node /usr/local/bin/node ➜ JiandaoWorkbench which npm /usr/local/bin/npm ➜ JiandaoWorkbench node -v v4.4.7 ➜ JiandaoWorkbench npm -v 2.15.8 ➜ JiandaoWorkbench |
转载请注明:在路上 » [已解决]Mac中如何安装Node.js