This can occur due to several reasons: You might have installed the package globally instead of locally, or vice versa. There might be an issue with your node_modules directory or the package-lock.json file. Ensure that you are requiring the module with the correct name and case.