Closed bessieatrazoyo closed 8 years ago
Try changing your fourth line to get the /home
directory:
app.get('/home', function(req, res) {
If you're still having troubles, make sure you install expressworks as follows:
cd to your working directory (e.g. ~/nodeschool/expressworks
)
$ sudo npm install express
$ sudo npm install -g expressworks
Changing from '/' to '/home' did the trick. Thanks, TylerMoeller!
@TylerMoeller , thank you
I had to do the same, but I'm on Windows 10.
Wow. This is pathetic. I can’t get past the first exercise. Can anybody tell me what I’m doing wrong?
Some info. I am working on a Mac. Below are the commands that I type in the terminal and info on the output. After that is my code.
$ sudo npm install express --save [entered password, much output, nothing in red...I think it went okay] $ killall node No matching processes belonging to you were found $ expressworks run Express.js 35557 Cannot GET /home
Here’s my code Express.js: