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

Getting error ERR_MODULE_NOT_FOUND #565

Open
andres-leon opened this issue Jun 20, 2024 · 1 comment
Open

Getting error ERR_MODULE_NOT_FOUND #565

andres-leon opened this issue Jun 20, 2024 · 1 comment

Comments

@andres-leon
Copy link

I am getting the same error Here is the complete message I get:

node:internal/modules/esm/resolve:265
throw new ERR_MODULE_NOT_FOUND(
^

Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/usr/local/lib/node_modules/a11y-sitechecker/bin/a11y-sitechecker_code' imported from /usr/local/lib/node_modules/a11y-sitechecker/bin/a11y-sitechecker.js
at finalizeResolution (node:internal/modules/esm/resolve:265:11)
at moduleResolve (node:internal/modules/esm/resolve:933:10)
at defaultResolve (node:internal/modules/esm/resolve:1157:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:383:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:352:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:227:38)
at ModuleWrap. (node:internal/modules/esm/module_job:87:39)
at link (node:internal/modules/esm/module_job:86:36) {
code: 'ERR_MODULE_NOT_FOUND',
url: 'file:///usr/local/lib/node_modules/a11y-sitechecker/bin/a11y-sitechecker_code'
}

Node.js v20.14.0

Installing on Ubuntu 22.04.4 LTS.

Thank you for any assistance you may be able to provide!

@jlk4p
Copy link

jlk4p commented Sep 20, 2024

I am seeing this same problem with version 6.1.0 on macOS 14.7.
I've tried running this as a script command.
It generates the ERR_MODULE_NOT FOUND error whether I'm running Node 20.17.0 (with npm 10.8.2) or Node 22.9.0 (with npm 10.8.3)

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

2 participants