0

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

  • Please provide the full logs, we can't tell what the issue is from the snippet – coagmano Mar 16 '20 at 01:10
  • @FredStark I have uploaded full logs to my drive. Here's the link : https://drive.google.com/file/d/1Cfqxw5Lw4JHiZnpSO2vGcVmJYIBE2rhu/view?usp=sharing – Aditya Varma Mar 16 '20 at 07:21
  • Your full log is missing the lines from the screenshot. Can you post what appears in your terminal? – coagmano Mar 17 '20 at 01:13
  • Looking at the logs, it looks like it's failing when trying to install `fsevents@1.0.14`, according to the engine compatibility section of the Readme, you need version 2+ to support node 12. Can you run `npm list --tree` and see which direct dependency is pulling fsevents@1.0.14 in? – coagmano Mar 17 '20 at 01:15

1 Answers1

1

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 bcrypt@4.0.1 and utf-8-validate@5.0.2. The latter is an indirect dependency, which seemed to make a difference.

Mikkel
  • 7,693
  • 3
  • 17
  • 31
  • I tried the above options. Didn't work for me. Looks like it is some dependency of angular-meteor-auth package which is causing this issue. I have added full logs in the question. – Aditya Varma Mar 16 '20 at 07:23