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

remix.init script failed #79

Closed
crowne opened this issue Dec 21, 2023 · 9 comments · Fixed by #84
Closed

remix.init script failed #79

crowne opened this issue Dec 21, 2023 · 9 comments · Fixed by #84
Labels
bug Something isn't working

Comments

@crowne
Copy link

crowne commented Dec 21, 2023

I tried to use the supa-fly-stack template but it failed with the message shown below.
I'm running on Windows 10
npx --version = 10.2.5
node --version = v20.10.0

> npx create-remix --template rphlmr/supa-fly-stack
 remix   v2.4.0 💿 Let's build a better website...

   dir   Where should we create your new project?
         ./appname

      ◼  Template: Using rphlmr/supa-fly-stack...
      ✔  Template copied

   git   Initialize a new git repository?
         Yes

  deps   Install dependencies with npm?
         Yes

  init   This template has a remix.init script. Do you want to run it?
         Yes

 ██████  Dependencies installing with npm...

      ▲  Oh no! Failed to install dependencies.

if I cd into the app-dir and run npm install I get the following output

› npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: appname@undefined
npm ERR! Found: @remix-run/react@2.4.0
npm ERR! node_modules/@remix-run/react
npm ERR!   @remix-run/react@"^2.4.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @remix-run/react@"^1.0.0" from remix-i18next@4.2.0
npm ERR! node_modules/remix-i18next
npm ERR!   remix-i18next@"^4.1.1" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR!
npm ERR! For a full report see:
npm ERR! C:\Users\user.name\AppData\Local\npm-cache\_logs\2023-12-21T10_52_51_177Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: C:\Users\user.name\AppData\Local\npm-cache\_logs\2023-12-21T10_52_51_177Z-debug-0.log
@rphlmr rphlmr added the bug Something isn't working label Dec 21, 2023
@rphlmr
Copy link
Owner

rphlmr commented Dec 21, 2023

Thanks for reporting this.

Will look at it, maybe similar to rphlmr/supa-stripe-stack#14 (comment)

@rphlmr
Copy link
Owner

rphlmr commented Dec 21, 2023

@crowne Can you try again 😇 ?
I let you close the issue if it's ok.

@crowne
Copy link
Author

crowne commented Dec 22, 2023

@rphlmr thanks that looks like the dependency issue is fixed, however there is a new error when running the remix.init script.

> npx create-remix --template rphlmr/supa-fly-stack

 remix   v2.4.0 💿 Let's build a better website...

   dir   Where should we create your new project?
         ./appname

      ◼  Template: Using rphlmr/supa-fly-stack...
      ✔  Template copied

   git   Initialize a new git repository?
         Yes

  deps   Install dependencies with npm?
         Yes

  init   This template has a remix.init script. Do you want to run it?
         Yes

      ✔  Dependencies installed

      ✔  Git initialized
      ✔  Dependencies for remix.init script installed

      ◼  Running template's remix.init script...

🚀  Making something cool with this template ...

      ▲  Oh no! Template's remix.init script failed

@rphlmr
Copy link
Owner

rphlmr commented Dec 22, 2023

Ok, I'll try to set up a Windows VM to test asap.

@crowne
Copy link
Author

crowne commented Dec 22, 2023

if I run npx remix init inside the app directory I see this:

>  npx remix init
🚀  Making something cool with this template ...
Error: 🚨 Oops, remix.init failed

😌  Sorry, this template only supports TypeScript
    at main (C:\github\orgname\appname\remix.init\index.js:22:9)
    at Object.init (C:\github\orgname\appname\node_modules\@remix-run\dev\dist\cli\commands.js:102:11)
    at async Object.run (C:\github\orgname\appname\node_modules\@remix-run\dev\dist\cli\run.js:167:7)

@rphlmr
Copy link
Owner

rphlmr commented Dec 22, 2023

Looks like something has changed 😬.
I come back soon, but init is not required. All it does is changing app name.

@seve
Copy link

seve commented Apr 12, 2024

Still seeing this, would recommend changing the issue name to reflect the new issue.

@mattwoberts
Copy link

I'm also getting this on a mac.

@rphlmr
Copy link
Owner

rphlmr commented Apr 14, 2024

Hello,

Is it remix.init script failed for everyone here?

@rphlmr rphlmr changed the title Install Dependencies failed remix.init script failed Apr 14, 2024
@rphlmr rphlmr mentioned this issue Apr 14, 2024
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
None yet
Development

Successfully merging a pull request may close this issue.

4 participants