gluestack-ui
gluestack-ui copied to clipboard
Error to create a new project using gluestack-v2
Description
When trying to create a new project using the command "npm create gluestack@latest" on Windows, it is showing errors when selecting the option with expo
CodeSandbox/Snack link
https://github.com/gluestack/gluestack-ui-cli
Steps to reproduce
- Go to run in PowerShell 'npm create gluestack@latest'
- Select Expo Version 'Expo App.'
- Enter the project name 'My App'
- See error: PS D:\Sistemas> npm create gluestack@latest
npx create-gluestack
Welcome to gluestack-ui v2! Creating a new project with gluestack-ui v2. Please use npm create gluestack@1 to use gluestack-ui v1.
| o What would you like to build? | Expo app | o Enter the name of your project: | my-app ⏳ Creating an expo app. Hang tight, this may take a while...
From https://github.com/gluestack/gluestack-ui-cli
- branch main -> FETCH_HEAD
- [new branch] main -> origin/main error: invalid path 'apps/templates/universal-with-nativewind/frontend/packages/modules/aux/components/PrivacyPolicy.tsx' error: invalid path 'apps/templates/universal-with-nativewind/frontend/packages/modules/aux/components/TermsOfService.tsx' Failed to create project Command failed: git pull origin main From https://github.com/gluestack/gluestack-ui-cli
- branch main -> FETCH_HEAD
- [new branch] main -> origin/main error: invalid path 'apps/templates/universal-with-nativewind/frontend/packages/modules/aux/components/PrivacyPolicy.tsx' error: invalid path 'apps/templates/universal-with-nativewind/frontend/packages/modules/aux/components/TermsOfService.tsx'
npm error code 1 npm error path D:\Sistemas npm error command failed npm error command C:\Windows\system32\cmd.exe /d /s /c create-gluestack npm error A complete log of this run can be found in: C:\Users\suporte.02\AppData\Local\npm-cache_logs\2025-05-22T13_30_18_658Z-debug-0.log PS D:\Sistemas>
2025-05-22T13_30_18_658Z-debug-0.log
gluestack-ui Version
latest
Platform
- [x] Expo
- [ ] React Native CLI
- [ ] Next
- [ ] Web
- [ ] Android
- [ ] iOS
Other Platform
Windows
Additional Information
This problem has been happening since the release of the latest version of gluestack, since then I can't use the latest version, only version 1.