search

Home  >  Q&A  >  body text

mac上如何使用node.js

在mac机上如何安装使用Node.js,如何搭建服务器,启用服务器,测试等等。

ringa_leeringa_lee2872 days ago663

reply all(3)I'll reply

  • 黄舟

    黄舟2017-04-17 15:36:02

    Of course it is best to refer to the official documentation: https://nodejs.org/en/download/.

    reply
    0
  • PHPz

    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

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 15:36:02

    Everything mentioned above is fine. I’ll add another one: use nvm to install it

    1. curl -o- https://raw.githubusercontent... | bash

    2. nvm install node
      See here for details: https://github.com/creationix...

    reply
    0
  • Cancelreply