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

npm create indiekit fails with a "Cannot find package 'debug'" from store-github #763

Closed
jacobian opened this issue Oct 2, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@jacobian
Copy link

jacobian commented Oct 2, 2024

Description of the bug

I'm working through the getting started guide and can't get the first step to work:

❯ npm create indiekit my-indiekit

> npx
> create-indiekit my-indiekit


Welcome to Indiekit! (create-indiekit v1.0.0-beta.18)
If you encounter a problem, visit https://github.com/getindiekit/indiekit/issues to file a new issue.

> Gathering details…
✔ What is your website’s URL? … https://micro.jacobian.org/
✔ Do you want to use a publication preset? … yes
✔ Which publication preset do you want to use? › Hugo
✔ Where do you want to store your content? › GitHub
✔ Do you want to syndicate your posts to other websites? … no
✔ Do you want to deploy your server using Docker? … yes
> Configuring Hugo preset…
✔ Which front matter format are you using? › YAML
node:internal/modules/esm/resolve:854
  throw new ERR_MODULE_NOT_FOUND(packageName, fileURLToPath(base), null);
        ^

Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'debug' imported from /Users/jacob/.npm/_npx/f8af157714d2c445/node_modules/@indiekit/store-github/index.js
    at packageResolve (node:internal/modules/esm/resolve:854:9)
    at moduleResolve (node:internal/modules/esm/resolve:927:18)
    at defaultResolve (node:internal/modules/esm/resolve:1169:11)
    at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:540:12)
    at ModuleLoader.resolve (node:internal/modules/esm/loader:509:25)
    at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:239:38)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:96:40)
    at link (node:internal/modules/esm/module_job:95:36) {
  code: 'ERR_MODULE_NOT_FOUND'
}

Node.js v20.17.0
npm error code 1
npm error path /Users/jacob/c/jacobian
npm error command failed
npm error command sh -c create-indiekit my-indiekit
npm error A complete log of this run can be found in: /Users/jacob/.npm/_logs/2024-10-02T22_24_51_978Z-debug-0.log

Here's that log file mentioned in the error message: 2024-10-02T22_24_51_978Z-debug-0.log

The log file mentioned

Steps to reproduce

  1. Run npm create indiekit

Expected behaviour

I expect not to get an NPM error 😄

Environment

  • Indiekit version: 1.0.0-beta.18
  • OS: macOS 15 ("sequoia")
  • Node: 20.17.0 (installed via mise)

Additional context

No response

@jacobian jacobian added the bug Something isn't working label Oct 2, 2024
@paulrobertlloyd
Copy link
Collaborator

Thanks for reporting this issue; I missed adding the debug dependency to the @indiekit/store-github package in a recent commit, this will fixed in the next beta release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants