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

npx create-expo-app cousing error (Solved) #20881

Closed
MayconParanhos opened this issue Jan 19, 2023 · 21 comments
Closed

npx create-expo-app cousing error (Solved) #20881

MayconParanhos opened this issue Jan 19, 2023 · 21 comments
Labels
CLI Versioned Expo CLI -- `npx expo start` needs validation Issue needs to be validated

Comments

@MayconParanhos
Copy link

Summary

When I run the comand npx create-expo-app, the following error occurs:

✖ Something went wrong in downloading and extracting the project files: Could not find npm package "expo-template-blank@latest"
Error cloning template: Error: Could not find npm package "expo-template-blank@latest"

I cannot realize why this error occurs since I've built expo app in the same environment.

Ubuntu 22.04

What platform(s) does this occur on?

No response

SDK Version

Latest

Environment

System:
OS: Linux 5.15 Ubuntu 22.04.1 LTS 22.04.1 LTS (Jammy Jellyfish)
Shell: 5.1.16 - /bin/bash

Minimal reproducible example

npx create-expo-app my-app --template

@MayconParanhos MayconParanhos added CLI Versioned Expo CLI -- `npx expo start` needs validation Issue needs to be validated labels Jan 19, 2023
@MayconParanhos
Copy link
Author

Hey community, I have solved the problem.

I ran the following terminal commands:

1 - sudo apt purge nodejs
2 - sudo apt autoremove
3 - sudo apt clean
4 - cd ~
5 - curl -sL https://deb.nodesource.com/setup_18.x -o /tmp/nodesource_setup.sh
6 - nano /tmp/nodesource_setup.sh (Just to see what was in the .sh file)
7 - sudo bash /tmp/nodesource_setup.sh (this run the nodesource .sh file)
8 - sudo dpkg --configure -a
9 - sudo apt install -f nodejs

@MayconParanhos MayconParanhos changed the title npx create-expo-app cousing error npx create-expo-app cousing error (Solved) Jan 21, 2023
@Simek
Copy link
Collaborator

Simek commented Jan 23, 2023

Glad to see you have solved the issue! 🎉

For the context, this error comes from npm and we cannot control it or change the wording, and it has its roots in the user local setup, so there is no actionable thing we can from our side.

@Simek Simek closed this as completed Jan 23, 2023
@lucy2329
Copy link

Any solution for windows?

@Alireza17224
Copy link

Any solution for macos ?

@yatrix7
Copy link

yatrix7 commented Jul 30, 2023

Any solution for macos ?

It's not a fix, but I was able to create the directory, my-app, go into that directory and then run npx create-expo-app -t and it worked. It was the only way I could move forward. Uninstalling node, rebooting -- nothing worked. It creates a nested folder though (my-app/my-app), so you'll have to clean that up. Otherwise, looks gtg.

@men3malgmatti
Copy link

for me with Ubuntu 22.04.1, installing node v20.6.1 from snapcraft solved it

@aadil42
Copy link

aadil42 commented Sep 14, 2023

@men3malgmatti, How did you install 20.6.1? when I update it it gives me 18 version everytime

@men3malgmatti
Copy link

@aadil42 try this : sudo snap install node --channel=20/stable --classic

@aadil42
Copy link

aadil42 commented Sep 14, 2023

Did you install expo-cli or just expo?

@aadil42
Copy link

aadil42 commented Sep 14, 2023

I'm getting confuse. Here https://docs.expo.dev/tutorial/create-your-first-app/#prerequisites it says you should have expo installed. But all the other docs says expo-cli.

@aadil42
Copy link

aadil42 commented Sep 14, 2023

@men3malgmatti, please help brother. It's driving me crazy

@aadil42
Copy link

aadil42 commented Sep 14, 2023

Thanks bro. It worked with node v20

@blackranja
Copy link

This worked for me:: npx create-expo-app@latest -e with-router my-app

@sergioabarbosa
Copy link

Thank you, it helped a lot!

@praneeth-ayla
Copy link

npx create-expo-app@latest -e with-router my-app

thanks, works for me

@Khun111
Copy link

Khun111 commented Apr 1, 2024

Any solution for macos ?

It's not a fix, but I was able to create the directory, my-app, go into that directory and then run npx create-expo-app -t and it worked. It was the only way I could move forward. Uninstalling node, rebooting -- nothing worked. It creates a nested folder though (my-app/my-app), so you'll have to clean that up. Otherwise, looks gtg.

Doesn't work for me

@aadil42
Copy link

aadil42 commented Apr 3, 2024

@Khun111 install node v20.

@Khun111
Copy link

Khun111 commented Apr 8, 2024

@aadil42 I already use that

@myleftshoe
Copy link

This worked for me:: npx create-expo-app@latest -e with-router my-app

This worked for me too but I don't know what it does yet. I am an expo newbie and this experience sux - makes you want to give up before you even start. Please fix. Pretty pleeeease.

@willianambrosio
Copy link

Thanks bro @MayconParanhos!!!!

@Khun111
Copy link

Khun111 commented May 6, 2024

It installed but I couldn't start the app. npm run android gives sdk errors. Npm run web starts at first but complains about a deprecated package when I try to connect expo go. Too bad

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLI Versioned Expo CLI -- `npx expo start` needs validation Issue needs to be validated
Projects
None yet
Development

No branches or pull requests