黄舟2017-04-17 15:36:02
Of course it is best to refer to the official documentation: https://nodejs.org/en/download/.
PHPz2017-04-17 15:36:02
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
PHP中文网2017-04-17 15:36:02
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...