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 find module 'morgan' at Function.Module._resolveFilename (module.js:469:15) #41

Open
rochakravi opened this issue Jul 8, 2017 · 7 comments

Comments

@rochakravi
Copy link

I used git clone and then completed=> node app.js then found above error . I dnt have how to resolve this so that i can see working code . Can anyone please help me?.

@sagarsrao
Copy link

sagarsrao commented Jul 8, 2017 via email

@rochakravi
Copy link
Author

rochakravi commented Jul 10, 2017 via email

@Iman-ik1510048
Copy link

try changing the port number

@rodcunha
Copy link

internal/modules/cjs/loader.js:596
throw err;
^

Error: Cannot find module 'morgan'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:594:15)
at Function.Module._load (internal/modules/cjs/loader.js:520:25)
at Module.require (internal/modules/cjs/loader.js:650:17)
at require (internal/modules/cjs/helpers.js:20:18)

I've tried installing with --save-dev and even globally but doesn't seem to work, always get this error at require.

@neydoo
Copy link

neydoo commented Sep 11, 2018

try npm link morgan

@lakshmankotiki
Copy link

lakshmankotiki commented Jun 19, 2019

@rodcunha
Seems like mongoose-morgon also do the same thing.
npm install mongoose-morgan
Worked for me, and its showing loggers in console too

@Wachiye
Copy link

Wachiye commented Sep 8, 2020

I ran npm I morganand npm I Morgan --local but it never solved. I just tried npm link morgan and I was saved.

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

7 participants