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

Unable to create a new gluestack-v2 project on windows #2743

Open
2 of 6 tasks
PabloGLeiteDeSouza opened this issue Feb 11, 2025 · 6 comments
Open
2 of 6 tasks

Unable to create a new gluestack-v2 project on windows #2743

PabloGLeiteDeSouza opened this issue Feb 11, 2025 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@PabloGLeiteDeSouza
Copy link

PabloGLeiteDeSouza commented Feb 11, 2025

Description

Unable to create a gluestack-v2 project on windows

CodeSandbox/Snack link

https://github.com/gluestack/gluestack-ui-cli

Steps to reproduce

  1. Go to 'https://gluestack.io/ui/docs/home/overview/quick-start'

  2. Click on 'copy command npm create gluestack@latest'

  3. Patste command in powershell and choice expo-app

  4. See error:
    npm create gluestack@latest

    Directory: D:\Users\suporte.02\Downloads\Dev

Mode LastWriteTime Length Name


d---- 11/02/2025 11:17 React-Native
Need to install the following packages:
create-gluestack@2.0.3
Ok to proceed? (y) y

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.


◇ What would you like to build?
│ Expo app

◇ 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:\Users\suporte.02\Downloads\Dev\React-Native
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-02-11T14_17_00_923Z-debug-0.log

gluestack-ui Version

latest

Platform

  • Expo
  • React Native CLI
  • Next
  • Web
  • Android
  • iOS

Other Platform

No response

Additional Information

Below is the content of the log file related to what happened:
0 verbose cli C:\Users\suporte.02\AppData\Local\fnm_multishells\11048_1739195392572\node.exe C:\Users\suporte.02\AppData\Local\fnm_multishells\11048_1739195392572\node_modules\npm\bin\npm-cli.js
1 info using npm@11.0.0
2 info using node@v22.12.0
3 silly config load:file:C:\Users\suporte.02\AppData\Roaming\fnm\node-versions\v22.12.0\installation\node_modules\npm\npmrc
4 silly config load:file:D:\Users\suporte.02\Downloads\Dev\React-Native.npmrc
5 silly config load:file:C:\Users\suporte.02.npmrc
6 silly config load:file:C:\Users\suporte.02\AppData\Local\fnm_multishells\11048_1739195392572\etc\npmrc
7 verbose title npm create gluestack@latest
8 verbose argv "create" "gluestack@latest"
9 verbose logfile logs-max:10 dir:C:\Users\suporte.02\AppData\Local\npm-cache_logs\2025-02-11T14_17_00_923Z-
10 verbose logfile C:\Users\suporte.02\AppData\Local\npm-cache_logs\2025-02-11T14_17_00_923Z-debug-0.log
11 silly logfile start cleaning logs, removing 1 files
12 silly logfile done cleaning log files
13 silly packumentCache heap:2197815296 maxSize:549453824 maxEntrySize:274726912
14 http fetch GET 200 https://registry.npmjs.org/create-gluestack 888ms (cache updated)
15 silly packumentCache heap:2197815296 maxSize:549453824 maxEntrySize:274726912
16 silly idealTree buildDeps
17 silly fetch manifest create-gluestack@2.0.3
18 silly packumentCache full:https://registry.npmjs.org/create-gluestack cache-miss
19 http fetch GET 200 https://registry.npmjs.org/create-gluestack 675ms (cache updated)
20 silly packumentCache full:https://registry.npmjs.org/create-gluestack set size:undefined disposed:false
21 silly placeDep ROOT create-gluestack@2.0.3 REPLACE for: want: 2.0.3
22 silly reify mark retired [
22 silly reify 'C:\Users\suporte.02\AppData\Local\npm-cache\_npx\efdf788a6e2299f6\node_modules\create-gluestack',
22 silly reify 'C:\Users\suporte.02\AppData\Local\npm-cache\_npx\efdf788a6e2299f6\node_modules\.bin\create-gluestack',
22 silly reify 'C:\Users\suporte.02\AppData\Local\npm-cache\_npx\efdf788a6e2299f6\node_modules\.bin\create-gluestack.cmd',
22 silly reify 'C:\Users\suporte.02\AppData\Local\npm-cache\_npx\efdf788a6e2299f6\node_modules\.bin\create-gluestack.ps1'
22 silly reify ]
23 silly reify moves {
23 silly reify 'C:\Users\suporte.02\AppData\Local\npm-cache\_npx\efdf788a6e2299f6\node_modules\create-gluestack': 'C:\Users\suporte.02\AppData\Local\npm-cache\_npx\efdf788a6e2299f6\node_modules\.create-gluestack-zLIAlQ6K',
23 silly reify 'C:\Users\suporte.02\AppData\Local\npm-cache\_npx\efdf788a6e2299f6\node_modules\.bin\create-gluestack': 'C:\Users\suporte.02\AppData\Local\npm-cache\_npx\efdf788a6e2299f6\node_modules\.bin\.create-gluestack-KLTTW1Xq',
23 silly reify 'C:\Users\suporte.02\AppData\Local\npm-cache\_npx\efdf788a6e2299f6\node_modules\.bin\create-gluestack.cmd': 'C:\Users\suporte.02\AppData\Local\npm-cache\_npx\efdf788a6e2299f6\node_modules\.bin\.create-gluestack.cmd-gHjXMYNQ',
23 silly reify 'C:\Users\suporte.02\AppData\Local\npm-cache\_npx\efdf788a6e2299f6\node_modules\.bin\create-gluestack.ps1': 'C:\Users\suporte.02\AppData\Local\npm-cache\_npx\efdf788a6e2299f6\node_modules\.bin\.create-gluestack.ps1-L5QCiL05'
23 silly reify }
24 silly audit bulk request {
24 silly audit '@clack/core': [ '0.3.4' ],
24 silly audit '@clack/prompts': [ '0.6.3' ],
24 silly audit '@gluestack/cli-utils': [ '0.1.11' ],
24 silly audit '@kwsites/file-exists': [ '1.1.1' ],
24 silly audit '@kwsites/promise-deferred': [ '1.1.1' ],
24 silly audit '@types/minimist': [ '1.2.5' ],
24 silly audit 'ansi-styles': [ '4.3.0' ],
24 silly audit chalk: [ '4.1.2' ],
24 silly audit 'color-convert': [ '2.0.1' ],
24 silly audit 'color-name': [ '1.1.4' ],
24 silly audit debug: [ '4.3.6' ],
24 silly audit 'find-package-json': [ '1.2.0' ],
24 silly audit 'fs-extra': [ '11.2.0' ],
24 silly audit 'graceful-fs': [ '4.2.11' ],
24 silly audit 'has-flag': [ '4.0.0' ],
24 silly audit jsonfile: [ '6.1.0' ],
24 silly audit ms: [ '2.1.2' ],
24 silly audit picocolors: [ '1.0.1' ],
24 silly audit 'simple-git': [ '3.25.0' ],
24 silly audit sisteransi: [ '1.0.5' ],
24 silly audit 'supports-color': [ '7.2.0' ],
24 silly audit universalify: [ '2.0.1' ],
24 silly audit 'create-gluestack': [ '2.0.3' ],
24 silly audit 'is-unicode-supported': [ '1.3.0' ]
24 silly audit }
25 http cache create-gluestack@https://registry.npmjs.org/create-gluestack/-/create-gluestack-2.0.3.tgz 0ms (cache hit)
26 silly tarball no local data for create-gluestack@https://registry.npmjs.org/create-gluestack/-/create-gluestack-2.0.3.tgz. Extracting by manifest.
27 http fetch GET 200 https://registry.npmjs.org/create-gluestack/-/create-gluestack-2.0.3.tgz 189ms (cache miss)
28 http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/advisories/bulk 230ms
29 silly audit report {}
30 verbose stack Error: command failed
30 verbose stack at promiseSpawn (C:\Users\suporte.02\AppData\Roaming\fnm\node-versions\v22.12.0\installation\node_modules\npm\node_modules@npmcli\promise-spawn\lib\index.js:22:22)
30 verbose stack at spawnWithShell (C:\Users\suporte.02\AppData\Roaming\fnm\node-versions\v22.12.0\installation\node_modules\npm\node_modules@npmcli\promise-spawn\lib\index.js:124:10)
30 verbose stack at promiseSpawn (C:\Users\suporte.02\AppData\Roaming\fnm\node-versions\v22.12.0\installation\node_modules\npm\node_modules@npmcli\promise-spawn\lib\index.js:12:12)
30 verbose stack at runScriptPkg (C:\Users\suporte.02\AppData\Roaming\fnm\node-versions\v22.12.0\installation\node_modules\npm\node_modules@npmcli\run-script\lib\run-script-pkg.js:77:13)
30 verbose stack at runScript (C:\Users\suporte.02\AppData\Roaming\fnm\node-versions\v22.12.0\installation\node_modules\npm\node_modules@npmcli\run-script\lib\run-script.js:9:12)
30 verbose stack at run (C:\Users\suporte.02\AppData\Roaming\fnm\node-versions\v22.12.0\installation\node_modules\npm\node_modules\libnpmexec\lib\run-script.js:48:10)
30 verbose stack at async exec (C:\Users\suporte.02\AppData\Roaming\fnm\node-versions\v22.12.0\installation\node_modules\npm\node_modules\libnpmexec\lib\index.js:298:10)
30 verbose stack at async Init.execCreate (C:\Users\suporte.02\AppData\Roaming\fnm\node-versions\v22.12.0\installation\node_modules\npm\lib\commands\init.js:135:5)
30 verbose stack at async Init.exec (C:\Users\suporte.02\AppData\Roaming\fnm\node-versions\v22.12.0\installation\node_modules\npm\lib\commands\init.js:44:14)
30 verbose stack at async Npm.exec (C:\Users\suporte.02\AppData\Roaming\fnm\node-versions\v22.12.0\installation\node_modules\npm\lib\npm.js:207:9)
31 error code 1
32 error path D:\Users\suporte.02\Downloads\Dev\React-Native
33 error command failed
34 error command C:\Windows\system32\cmd.exe /d /s /c create-gluestack
35 verbose cwd D:\Users\suporte.02\Downloads\Dev\React-Native
36 verbose os Windows_NT 10.0.19045
37 verbose node v22.12.0
38 verbose npm v11.0.0
39 verbose exit 1
40 verbose code 1
41 error A complete log of this run can be found in: C:\Users\suporte.02\AppData\Local\npm-cache_logs\2025-02-11T14_17_00_923Z-debug-0.log

@akash3gtm
Copy link
Collaborator

Can you please try again, we have updated the command.

@PabloGLeiteDeSouza
Copy link
Author

Hello, i am test again this command, but i don't create gluestack-v2 app:
this is the error appearing:
PS D:\Users\suporte.02\Downloads\Dev\React-Native> 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.


◇ What would you like to build?
│ Expo app

◇ 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:\Users\suporte.02\Downloads\Dev\React-Native
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-02-14T11_28_03_339Z-debug-0.log
PS D:\Users\suporte.02\Downloads\Dev\React-Native>

@akash3gtm
Copy link
Collaborator

you are creating v2 apps or v1 apps?

@akash3gtm akash3gtm assigned akash3gtm and unassigned rajat693 Feb 14, 2025
@PabloGLeiteDeSouza
Copy link
Author

I am creating v2 apps following the documentation available at:
https://gluestack.io/

@akash3gtm
Copy link
Collaborator

windows version?

@PabloGLeiteDeSouza
Copy link
Author

I am using windows 10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

3 participants