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 create new project #813

Closed
segvndo opened this issue Jul 27, 2023 · 3 comments
Closed

Cannot create new project #813

segvndo opened this issue Jul 27, 2023 · 3 comments

Comments

@segvndo
Copy link

segvndo commented Jul 27, 2023

Which package manager are you using? (Yarn is recommended)

npm

Summary

I was trying to create a new project, but keep running into this error:

Error: Could not parse JSON returned from "npm pack expo-template-blank@latest --dry-run".

expo-template-blank-49.0.14.tgz

Error: Unexpected token e in JSON at position 0

Minimal reproducible example

npx create-expo-app my-app
✖ Something went wrong in downloading and extracting the project files: Could not parse JSON returned from "npm pack expo-template-blank@latest --dry-run".

expo-template-blank-49.0.14.tgz

Error: Unexpected token e in JSON at position 0
Error: Could not parse JSON returned from "npm pack expo-template-blank@latest --dry-run".

expo-template-blank-49.0.14.tgz

Error: Unexpected token e in JSON at position 0

@dmrcnr
Copy link

dmrcnr commented Aug 1, 2023

You should check and make sure you use the latest version of NPM. You can run the following command:
npm install npm@latest

@EvanBacon
Copy link
Contributor

Cannot repro

@ayrtoncu
Copy link

I have the same error and already lost 2 days trying to solve it, did you find the solution?

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

4 participants