在mac机上如何安装使用Node.js,如何搭建服务器,启用服务器,测试等等。
ringa_lee
Of course it is best to refer to the official documentation: https://nodejs.org/en/download/.
brew install nodebrew install nginxnpm install expressnpm install pm2 -gpm2 start bin/wwwModify nginx.conf Add server reverse proxyModify hostsAccess your project
This is the process, for reference only
Everything mentioned above is fine. I’ll add another one: use nvm to install it
curl -o- https://raw.githubusercontent... | bash
nvm install nodeSee here for details: https://github.com/creationix...
Of course it is best to refer to the official documentation: https://nodejs.org/en/download/.
brew install node
brew install nginx
npm install express
npm install pm2 -g
pm2 start bin/www
Modify nginx.conf Add server reverse proxy
Modify hosts
Access your project
This is the process, for reference only
Everything mentioned above is fine. I’ll add another one: use nvm to install it
curl -o- https://raw.githubusercontent... | bash
nvm install node
See here for details: https://github.com/creationix...