简体   繁体   English

在为 node v12 安装 babel cli 时获取奇怪的错误日志

[英]Getting weird error logs while installing babel cli for node v12

I have been getting some weird error logs while installing babel cli on my mac machine which has node v12.在我的具有节点 v12 的 mac 机器上安装 babel cli 时,我收到了一些奇怪的错误日志。 It seems the error is related to fsevents module which is a dependency for mac.该错误似乎与 fsevents 模块有关,该模块是 mac 的依赖项。 I was trying with the command yarn global add babel-cli我正在尝试使用命令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 完整日志

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.与其说是流星问题,不如说是节点 12 问题。 It looks like a problem with nan , but in fact it's likely to be some other library.看起来像是nan的问题,但实际上很可能是其他一些库。

I finally solved it by making sure that I had the latest bcrypt@4.0.1 and utf-8-validate@5.0.2 .我最终通过确保我拥有最新的bcrypt@4.0.1utf-8-validate@5.0.2来解决它。 The latter is an indirect dependency, which seemed to make a difference.后者是间接依赖,这似乎有所作为。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM