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)
This is a bug. It’s not intentional. It will be fixed.
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.4I have tried
npx create-remix@latestand it works for meBTW: It’s working for me on Windows
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-20220426which 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.1stable sonpx create-remix@latestshould 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?
If that doesn’t work, you might need to nuke the
_npxdirectory altogether (<ROOT>/npm-cache/_npxon 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!I am able to get it working just fine, having created the remix app server deployment option.
Edit: I am also able to get it to work running
npm installas part of the cli prompts.