question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Cannot find module 'jsonwebtoken'

See original GitHub issue

Hello all. I’m facing this very weird problem. When I install jsonwebtoken on windows, I can easily require() and use it. But when I install it on ubuntu (using --save, not globally), I always face this error:

Error: Cannot find module ‘jsonwebtoken’

On Ubuntu, size of jsonwebtoken folder in node_modules is 90KB and 120KB on windows. All I need to do is to copy this folder from windows to linux and it works.

Can any1 help? Thanks.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
armankarimicommented, Feb 13, 2018

Ouch sorry. Thanks for your help.

0reactions
MitMarocommented, Feb 13, 2018

No problem! Good luck. 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot find module 'jsonwebtoken' Node.js - Stack Overflow
Just do: npm install jsonwebtoken --save. This is because you can not directly require a globally installed package in your code.
Read more >
jsonwebtoken - npm
JSON Web Token implementation (symmetric and asymmetric). Latest version: 9.0.0, last published: 8 days ago. Start using jsonwebtoken in ...
Read more >
Cannot find module 'jsonwebtoken' - YouTube
Cannot find module ' jsonwebtoken ' Cannot find module 'jwk-to-pem'
Read more >
Error: Cannot find module 'jsonwebtoken' : r/node - Reddit
Hello! I've been working on a personal project, and I'm currently trying to implement JWT authentication (following this tutorial…
Read more >
Javascript – Cannot find module 'jsonwebtoken' Node.js
However, i run into problems when i use require('jsonwebtoken'); and try to compile my code, it gives me the error described above in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found