-
Notifications
You must be signed in to change notification settings - Fork 43
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
refmterr cannot be npm installed #216
Comments
Hi @jozanza, an immediate workaround would be to install using (esy)[https://esy.sh/] (you can still use your package.json and the commands are all essentially the same. Basically the errors you are getting are for packages that live in the opam registry (esy knows how to download packages from ocaml and npm/yarn do not). @jordwalke probably has a sense of whether or not this is a feature or a bug. Nothing has changed recently, but I could maybe see there being value in having some kind of executable we could readily distribute |
Thanks for the response @bandersongit! I'm happily using plain old dune + opam in my project, so unfortunately, switching over to esy would be a bit of a hassle. I'll hold out for that executable 🤞😄 This is a bit off-topic but also somewhat related: |
I think that is something we actively want to do. @jordwalke actually did the work to create properly formed opam files for all of our libraries, so I think we are probably pretty close. |
Very excited to hear that! I’ll keep my eyes on this issue for any updates. Thanks! |
Small update 🎉 While these packages are not yet published on opam, as @bandersongit pointed out, they do have properly formed opam files. So it is possible to install and use them without REASON_NATIVE_URL=https://github.com/facebookexperimental/reason-native.git
opam pin console $(REASON_NATIVE_URL)\#master --yes
opam pin pastel $(REASON_NATIVE_URL)\#master --yes
opam pin refmterr $(REASON_NATIVE_URL)\#master --yes
opam pin file-context-printer $(REASON_NATIVE_URL)\#master --yes
opam pin rely $(REASON_NATIVE_URL)\#master --yes Of course, it would still be much nicer if they were published on opam 😉
|
I tried installing nearly every version, and none of them work.
npm i -g refmterr
yields the output such as this:<MISSING_PACKAGE>
is not deterministic but seems to be any of the following:I'd really love to install
refmterr
as a standalone binary just like how I haverefmt
. But currently, it seems impossible to use it outside of anesy
project 😢Can you offer any advice/clarification/workarounds?
The text was updated successfully, but these errors were encountered: