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

[Bug Report] Fails to create boilerplate with MODULE_NOT_FOUND error #2

Open
isimmons opened this issue Oct 30, 2024 · 0 comments
Open

Comments

@isimmons
Copy link

Versions

  • App Version: latest ?
  • Node Version: v22.9.0
  • Operating System: Windows 11

Expected Behavior

Creates boilerplate

Actual Behavior

npm install @ptkdev/node-cli-boilerplate -g

added 20 packages in 4s

node-cli-boilerplate
node:internal/modules/esm/resolve:257
    throw new ERR_MODULE_NOT_FOUND(
          ^

Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'C:\Users\isimm\.config\herd\bin\nvm\v22.9.0\node_modules\@ptkdev\node-cli-boilerplate\dist\functions\module' imported from C:\Users\isimm\.config\herd\bin\nvm\v22.9.0\node_modules\@ptkdev\node-cli-boilerplate\dist\cli\cli.js
    at finalizeResolution (node:internal/modules/esm/resolve:257:11)
    at moduleResolve (node:internal/modules/esm/resolve:914:10)
    at defaultResolve (node:internal/modules/esm/resolve:1038:11)
    at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:557:12)
    at ModuleLoader.resolve (node:internal/modules/esm/loader:525:25)
    at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:246:38)
    at ModuleJob._link (node:internal/modules/esm/module_job:126:49) {
  code: 'ERR_MODULE_NOT_FOUND',
  url: 'file:///C:/Users/isimm/.config/herd/bin/nvm/v22.9.0/node_modules/@ptkdev/node-cli-boilerplate/dist/functions/module'
}

Node.js v22.9.0
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