Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot pass stylish-css challenge #131

Open
arku opened this issue Jan 15, 2017 · 0 comments
Open

Cannot pass stylish-css challenge #131

arku opened this issue Jan 15, 2017 · 0 comments

Comments

@arku
Copy link

arku commented Jan 15, 2017

Code:

const express = require('express'),
      app = express(),
      path = require('path'),
      stylus = require('stylus'),
      port = Number(process.argv[2]);

let publicPath = path.join(__dirname, 'public');

app.use(stylus.middleware(publicPath));
app.use(express.static(publicPath));

try {
  app.listen(port);
} catch(err) {
  console.log(err.message);
}

Result of expressworks run(I have an alias setup)

$ ew run index.js 
p {
  color: #f00;
}

Result of expressworks verify

$ ew verify index.js 

Your submission results compared to the expected:

                 ACTUAL                                 EXPECTED                
────────────────────────────────────────────────────────────────────────────────

    "p {"                               !=    "Error: EACCES: permission denied, open &#39;/usr/lib/node_modules/expressworks/exercises/stylish_css/public/main.css&#39;<br> &nbsp; &nbsp;at Error (native)"
   "  color: #f00;"                    !=    ""                                 
   ""                                  !=                                       

────────────────────────────────────────────────────────────────────────────────

Why is the test looking for main.css in /usr/lib/node_modules/expressworks/exercises/stylish_css/public/?

What am I missing here?

/cc @azat-co

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant