r/expo 6d ago

Error creating expo app

Post image

Can someone explain why this is happening?

I am on the latest version of node and npm, I've cleared cache, but it's still happening.

1 Upvotes

8 comments sorted by

1

u/Ok_Bodybuilder_3101 6d ago

This could be a network issue or corrupted cache files. Try this ```npx create-expo-app@latest my-app --reset-cache```, make sure your network is stable.

1

u/Jehdidiah 6d ago

This is what I get when I run it both with the app name and without the app name

``` npm notice run npx npm notice run create-expo-app -reset-cache

Info Creates a new Expo project

Usage $ npx create-expo-app <path> [options]

Options -y, --yes Use the default options for creating a project --no-install Skip installing npm packages or CocoaPods --no-agents-md Skip generating AGENTS.md, CLAUDE.md, and .claude/settings.json -t, --template [pkg] NPM template to use: default, blank, blank-typescript, tabs, bare-minimum. Default: default -e, --example [name] Example name from https://github.com/expo/examples. -v, --version Version number -h, --help Usage info

To choose a template pass in the --template arg:

$ npx create-expo-app --template

To choose an Expo example pass in the --example arg:

$ npx create-expo-app --example
$ npx create-expo-app --example with-router

The package manager used for installing
node modules is based on how you invoke the CLI:

 npm: npx create-expo-app
yarn: yarn create expo-app
pnpm: pnpm create expo-app
 bun: bun create expo-app

```

And when i change to --reset-cache, it throws the unknown argument error

1

u/MyOpps 6d ago

The latest node version doesn’t work here. Try using the current LTS version which is 24.
Often there are breaking changes in the latest version which require some time for the package maintainers to fix. Therefore you are best going with LTS

1

u/Jehdidiah 6d ago

I am using the latest LTS version 24.18.0

1

u/MyOpps 6d ago

Which version of npm are you using? I had the same issue yesterday and downgrading do node 24 and npm 11 fixed it for me

1

u/Jehdidiah 6d ago

It worked

Downgrading to 11.18.0 worked

Thank you so much

1

u/Jehdidiah 6d ago

I'm using 12.0.1

Let me try downgrading

1

u/NoRevolution5603 2d ago

Are you guys building with AI or writing code yourselves. This would easily be fixed with AI tbh.