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
709 stars 220 forks source link

Pug isn't sensed, even when it's installed #137

Open mrmiffmiff opened 7 years ago

mrmiffmiff commented 7 years ago

Literally using the official solution, but the module pug still can't be found. I've installed it multiple times, including the version listed on the main page of the repository and also globally at some point. Exact error code, if it's needed:

Error: Cannot find module 'pug' at Function.Module._resolveFilename (module.js:325:15) at Function.Module._load (module.js:276:25) at Module.require (module.js:353:17) at require (internal/module.js:12:17) at new View (/Users/reisenman/node_modules/express/lib/view.js:80:30) at EventEmitter.render (/Users/reisenman/node_modules/express/lib/application.js:570:12) at ServerResponse.render (/Users/reisenman/node_modules/express/lib/response.js:971:7) at /Users/reisenman/Documents/expressworks/pg.js:7:9 at Layer.handle [as handle_request] (/Users/reisenman/node_modules/express/lib/router/layer.js:95:5) at next (/Users/reisenman/node_modules/express/lib/router/route.js:137:13)

Advice?