Getting weird error logs while installing babel cli for node v12

93 Views Asked by At

I have been getting some weird error logs while installing babel cli on my mac machine which has node v12. It seems the error is related to fsevents module which is a dependency for mac. I was trying with the command yarn global add babel-cli

I was facing the same issue when trying to update meteor version for a different project.

Screenshot

The logs are a lot lengthier than the one attached.

Full Logs

1

There are 1 best solutions below

1
Mikkel On

Welcome to Stack Overflow. This problem can be quite annoying to resolve, and I have been battling with it recently.

It's more of a node 12 problem than a Meteor problem. It looks like a problem with nan, but in fact it's likely to be some other library.

I finally solved it by making sure that I had the latest [email protected] and [email protected]. The latter is an indirect dependency, which seemed to make a difference.