azat-co / expressworks

Learn Express.js from the author of one of the best books on Express.js—Pro Express.js— with this workshop that will teach you basics of Express.js.
MIT License
715 stars 220 forks source link

Error running stylish css solution #16

Closed meandavejustice closed 10 years ago

meandavejustice commented 10 years ago

Continuously getting this error:

Error: EACCES, open '/usr/local/lib/node_modules/expressworks/problems/stylish_css/public/main.css'

my solution:

var express = require('express')
var app = express()
var stylus = require('stylus')

var STATIC_DIR = process.argv[3]

app.use(stylus.middleware(STATIC_DIR))
app.use(express.static(STATIC_DIR))

app.listen(process.argv[2])

You can see in the screenshot that both solutions are not being loaded :(