Error: Command failed: npx react-native init Test --template react-native-template-react-native-web
D4rxio opened this issue · 4 comments
Describe the bug
Error: Command failed: npx react-native init Test --template react-native-template-react-native-web
To Reproduce
Steps to reproduce the behavior:
- Use the command to create a new project: "npx create-react-native-web-app Test"
- See error
Expected behavior
A new react-native with web application created as project stays
Screenshots
yarn-error.log
Desktop (please complete the following information):
- OS: [e.g. iOS] - Windows 10 21H1
- Browser [e.g. chrome, safari] - Opera GX - but didn't manage to start project yet
- Version [e.g. 22] - 19043.1165
- tried to use elevated powershell or standard
Smartphone (please complete the following information): - N/A
Additional context
Cannot create project unsing command
Hi @D4rxio did you use the package globally before? if so please uninstall it like this
npm uninstall -g create-react-native-web-app
and then try again.
I ran the command and it worked for me
Look like I did, I was trying several tutorials and could be that I messed everything 🤣
Will check later if I was able to create one.
Thanks
works like a charm, didn't try uninstalling first.
Thank you for support :)