Umid2017-01-26 02:55:56
Umid, 2017-01-26 02:55:56

500 Error: Cannot find module 'pug'?

500 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 (C:\Users\Umid\node_modules\express\lib\view.js:43:49)
at Function.app.render (C: \Users\Umid\node_modules\express\lib\application.js:488:12)
at ServerResponse.res.render (C:\Users\Umid\node_modules\express\lib\response.js:760:7)
at C: \Users\Umid\Desktop\ExpressProjects\firstApp\app.js:24:6
at callbacks (C:\Users\Umid\node_modules\express\lib\router\index.js:164:37)
at param (C:\ Users\Umid\node_modules\express\lib\router\index.js:138:11)

An error is displayed. The project itself is here .
Pug is installed both locally and globally.
Express costs globally. When I put it locally, the server does not start and displays the following:
I tried to find a solution by googling. Those who had a similar problem solved it by installing pug(jade) globally.
I hope for your help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Yuri, 2017-01-26

obviously it would not hurt to look at their link

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question