expo / router

[ARCHIVE]: Expo Router has moved to expo/expo -- The File-based router for universal React Native apps

Home Page:https://docs.expo.dev/routing/introduction/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot create new project

segvndo opened this issue · comments

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

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

Cannot repro

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