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

"Cannot find package 'glob'" when running npx create-puck-app my-app #38

Closed
maantjemol opened this issue Sep 6, 2023 · 4 comments · Fixed by #40
Closed

"Cannot find package 'glob'" when running npx create-puck-app my-app #38

maantjemol opened this issue Sep 6, 2023 · 4 comments · Fixed by #40

Comments

@maantjemol
Copy link

Hi!
What an amazing project! I was trying to get it to work locally but it seems like the recipe doesn't work on my machine. I get this error when I run it:

> npx create-puck-app my-app

node:internal/errors:496
    ErrorCaptureStackTrace(err);
    ^

Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'glob' imported from /Users/maantje/.npm/_npx/039b3c3c47fc2298/node_modules/create-puck-app/index.js
    at new NodeError (node:internal/errors:405:5)
    at packageResolve (node:internal/modules/esm/resolve:781:9)
    at moduleResolve (node:internal/modules/esm/resolve:830:20)
    at defaultResolve (node:internal/modules/esm/resolve:1035:11)
    at DefaultModuleLoader.resolve (node:internal/modules/esm/loader:251:12)
    at DefaultModuleLoader.getModuleJob (node:internal/modules/esm/loader:140:32)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:76:33)
    at link (node:internal/modules/esm/module_job:75:36) {
  code: 'ERR_MODULE_NOT_FOUND'
}

Node.js v20.4.0

I'm using Node v20.4.0, I also tried with pnpm and got the same error. I sadly don't know enough about npm to fix this.

@maantjemol maantjemol changed the title Error when running npx create-puck-app my-app "Cannot find package 'glob'" when running npx create-puck-app my-app Sep 6, 2023
@gajraj-gan
Copy link

+1

1 similar comment
@kumarajay0412
Copy link

+1

@chrisvxd
Copy link
Member

chrisvxd commented Sep 6, 2023

Thanks for the report! Can confirm I'm able to reproduce. Investigating now.

@chrisvxd
Copy link
Member

chrisvxd commented Sep 6, 2023

This has been released in v0.6.1.

npx create-puck-app my-app should work now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants