Notes for learning dotinstall's "Express Introduction" on Mac right now
These are notes for learning dotinstall’s “Express Introduction” on Mac right now.
Dotinstall’s “Express Introduction” lessons are prepared based on Express3. However, Express4 has been released now, so if you proceed without thinking, Express4 will be installed and you won’t be able to proceed with the lessons as expected.
Since there are several such stumbling points, this article will supplement them.
First, refer to How to install Node.js version management tool nvm on Mac to install it and also install Node.js.
And while the lesson shows:
sudo npm install express -g
Let’s install it by specifying the Express3 version like this:
npm install [email protected] -g
While the lesson shows:
npm install express
Let’s also specify the Express3 version for this:
npm install [email protected]
Also, while the lesson says to access via 192.168.33.93:3000 in the browser, when running node app in Mac’s Terminal, you can access it by entering localhost:3000 or 127.0.0.1:3000.
In this lesson too, instead of:
sudo npm install nodemon -g
You can use it without sudo:
npm install nodemon -g
I hope this helps those learning “Express Introduction” on Mac. That’s all from the Gemba.