remix: bug: `npx create-remix` not working on Windows

What version of Remix are you using?

/

Steps to Reproduce

yarn create remix > YOUR_PATH > Just the basic > Cloudflare Pages > TypeScript > No using npx still cause error using other deploy target also cause error

Expected Behavior

Work

Actual Behavior

It returns an error: 🚨 The provided template must be a Remix project with a `package.json` file, but that file does not exist in D:\Project\test-remix\package.json

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 7
  • Comments: 36 (6 by maintainers)

Most upvoted comments

I don’t understand why it’s not friendly to Window users, it seems that only Apple is you guys choice.

This is a bug. It’s not intentional. It will be fixed.

Tracked in #2691 For now you can use npx create-remix@1.3.4

I don’t understand why it’s not friendly to Window users, it seems that only Apple is you guys choice.

Tracked in #2691 For now you can use npx create-remix@1.3.4

I have tried npx create-remix@latest and it works for me

BTW: It’s working for me on Windows image

This version is now working for me on WSL in the Linux sub-system directory and on mounted device directories.

🤖 Hello there,

We just published version v0.0.0-nightly-a9f2dde-20220426 which involves this issue. If you’d like to take it for a test run please try it out and let us know what you think!

Thanks!

For everyone else who isn’t having issues, I just released v1.4.1 stable so npx create-remix@latest should work as expected moving forward. We also now have tests in place for this so hopefully we won’t have any regressions moving forward 😬

Thanks @leefisher, and very sorry for the frustration here! We may move forward with the release for others, but I’ll keep this open until we can eliminate any issues on our end.

@leefisher Yeah the ordering of questions is fishy to me too. Wondering if you have an npx caching issue here. Maybe try clearing it?

npx clear-npx-cache

If that doesn’t work, you might need to nuke the _npx directory altogether (<ROOT>/npm-cache/_npx on Windows, I think)

@leefisher Thanks a ton. Sorry to keep bugging you, but could you try once more with 1.4.1-pre.3? None of us are able to reproduce the issue so your help is very much appreciated!

Anyone on Windows able to give the latest pre-release a run and see if it fixes your issues?

npx create-remix@1.4.1-pre.1

I am able to get it working just fine, having created the remix app server deployment option. image

Edit: I am also able to get it to work running npm install as part of the cli prompts.