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

Ignite project creation is broken on Windows #2816

Open
AsterisMono opened this issue Oct 19, 2024 · 1 comment · May be fixed by #2817
Open

Ignite project creation is broken on Windows #2816

AsterisMono opened this issue Oct 19, 2024 · 1 comment · May be fixed by #2817
Labels

Comments

@AsterisMono
Copy link

AsterisMono commented Oct 19, 2024

Describe the bug

✅ What bundle identifier? · com.pizzaappnpx
✅ Where do you want to start your project? · C:\Users\cmiki\Documents\Projects\PizzaAppNpx
✅ How do you want to manage Native code? · CNG
✅ Do you want to initialize a git repository? (Y/n) · Yes
✅ Remove demo code? We recommend leaving it in if it's your first time using Ignite (y/N) · No
✅ Which package manager do you want to use? · pnpm
✅ Do you want to install dependencies? (Y/n) · No
✅ [Experimental] Expo Router for navigation? (y/N) · No
✅ [Experimental] the New Architecture? (y/N) · No

<Ignite ASCII art>

    █ Creating PizzaAppNpx using Ignite 10.0.1
    █ Powered by  ∞ Infinite Red  (https://infinite.red)
    █ Package Manager: pnpm
    █ Bundle identifier: com.pizzaappnpx
    █ Path: C:\Users\cmiki\Documents\Projects\PizzaAppNpx
    ────────────────────────────────────────────────────

    🖨   3D-printing a new React Native app
    🎨 Getting those last few details perfect
    ⚙️ Configuring app.json
    🛠️  Removing fancy demo markup

The following error occurred:

    Error: Command failed: rm -rf src
'rm' is not recognized as an internal or external command,
operable program or batch file.


    Consider opening an issue with the following information at:
    https://github.com/infinitered/ignite/issues/new?template=bug_report.yml&labels=bug

Node uses CMD to execute system.run commands on Windows, but rm and mv are not available in CMD.

I've come up with a PR to resolve this issue -- see below.

Ignite version

10.0.1

Additional info

System
  platform           win32
  arch               x64
  cpu                16 cores     11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz
  directory          Projects     C:\Users\cmiki\Documents\Projects

JavaScript
  node               20.11.1                                   C:\Program Files\nodejs\node.EXE
  npm                10.2.4                                    C:\Program Files\nodejs\npm.CMD
  yarn               1.22.21                                   C:\Program Files\nodejs\yarn.CMD
  pnpm               8.15.3                                    C:\Program Files\nodejs\pnpm.CMD
                     <no pnpm global package info available>
  bun                -                                         not installed
  expo               -                                         not installed

Ignite
  ignite-cli         10.0.1       C:\Users\cmiki\AppData\Local\npm-cache\_npx\e31027f3785124a8\node_modules\.bin\ignite.CMD
  ignite src         build        C:\Users\cmiki\AppData\Local\npm-cache\_npx\e31027f3785124a8\node_modules\ignite-cli\build

Android
  java               17.0.12      C:\Program Files\Eclipse Adoptium\jre-17.0.12.7-hotspot\bin\java.EXE
  android home       -            undefined

Tools
  git                git version 2.43.0.windows.1   C:\Program Files\Git\cmd\git.EXE
@marcoperic
Copy link

run npm install [email protected]^ and try again. The latest version must be broken.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants