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

pnpm exec admin fails (no lib/cli.js in adminjs) #10

Open
ZeroCho opened this issue Jul 12, 2024 · 0 comments
Open

pnpm exec admin fails (no lib/cli.js in adminjs) #10

ZeroCho opened this issue Jul 12, 2024 · 0 comments

Comments

@ZeroCho
Copy link

ZeroCho commented Jul 12, 2024

I'm using adminjs with pnpm.
When I run pnpm exec admin which is the same as npx admin, it fails.

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

Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/Users/zerocho/WebstormProjects/alchemist-back/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]/node_modules/adminjs/lib/cli' imported from /Users/zerocho/WebstormProjects/alchemist-back/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]/node_modules/adminjs/cli.js
    at finalizeResolution (node:internal/modules/esm/resolve:255:11)
    at moduleResolve (node:internal/modules/esm/resolve:908:10)
    at defaultResolve (node:internal/modules/esm/resolve:1121:11)
    at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:396:12)
    at ModuleLoader.resolve (node:internal/modules/esm/loader:365:25)
    at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:240:38)
    at ModuleLoader.import (node:internal/modules/esm/loader:328:34)
    at importModuleDynamically (node:internal/modules/esm/translators:146:35)
    at importModuleDynamicallyCallback (node:internal/modules/esm/utils:176:14)
    at file:///Users/zerocho/WebstormProjects/alchemist-back/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]/node_modules/adminjs/cli.js:3:1 {
  code: 'ERR_MODULE_NOT_FOUND',
  url: 'file:///Users/zerocho/WebstormProjects/alchemist-back/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]/node_modules/adminjs/lib/cli'
}

Inside node_modules/adminjs/lib, there's no cli.js

@ZeroCho ZeroCho changed the title pnpm exec admin fails pnpm exec admin fails (no lib/cli.js in adminjs) Jul 12, 2024
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

1 participant