Closed bessieatrazoyo closed 8 years ago
your code looks wrong on many levels...
here's how to use the static middleware http://expressjs.com/starter/static-files.html
@bessieatrazoyo I recorded this video for you https://www.youtube.com/watch?v=UJ0QzpHOLec
I got sidetracked on another issue, but I promise I'll be back. Thank you.
Thank you so much for the video. It really helped.
This is about a little issue that I ran into:
When I did this:
expressworks run program.js
I got this:
p {
color: #f00;
}
When I did this:
expressworks verify program.js
I got this nonsense:
Error: EACCES: permission denied, open '/usr/local/lib/node_modules/expressworks/exercises/stylish_css/public/main.css'<br> at Error (native)
The secret sauce was to do this:
sudo expressworks verify program.js
I am on a Mac-Book
I can’t figure out how to use the middleware to create the stylesheet. How do I use it?
This is my code:
And this is what it outputs: