Error: Cannot find module 'jsonwebtoken'
See original GitHub issueHello 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:
- Created 6 years ago
- Comments:6 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ouch sorry. Thanks for your help.
No problem! Good luck. 😃