uuid: Cannot find module 'uuid/v4'
Hi,
I install uuid module on my Windows 10 64bit with WebStorm and NodeJS 8.8.1 but when I require the module I get this error:
error: uncaughtException: Cannot find module 'uuid/v4'
Any idea?
Thanks
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 16 (7 by maintainers)
Just ran into this issue on my computer, it was because I was using the newer version of the library than my code was written for.
The original code was
Newer versions of this library requires it to be
Hope this helps anyone else searching in the future 👍
If code size is a primary consideration for people, there are options:
uuid@3.4and the deep-import syntax@TrySound By accumulating this cost with other dependencies you will know how heavy it can be.
@broofa I understand the point that was necessary to maintain compatibility and avoid problems. But if I highlight that the change is much greater.
The problem with this change is that it has greater weight when required.