在mac机上如何安装使用Node.js,如何搭建服务器,启用服务器,测试等等。
楼上说的都可以,补充一个用 nvm 安装
curl -o- https://raw.githubusercontent... | bash
nvm install node
详细看这里:https://github.com/creationix...
brew install node
brew install nginx
npm install express
npm install pm2 -g
pm2 start bin/www
修改 nginx.conf 添加 server 反向代理
修改hosts
访问你的项目
大概就这么个流程,仅供参考
当然是参考官方文档最好:https://nodejs.org/en/download/。