如何避免angular :-(节点:19100)中的错误ExperimentingWarning:fs.promises API是实验性的? [英] How to avoid the error in angular :- (node:19100) ExperimentalWarning: The fs.promises API is experimental?

查看:483
本文介绍了如何避免angular :-(节点:19100)中的错误ExperimentingWarning:fs.promises API是实验性的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

运行ng serve命令时收到此警告.如何卸载fs-extra?还是可以避免这种错误的另一种方法呢?

I am getting this warning when running the command ng serve. How can I uninstall fs-extra? Or what is the other way around to avoid this error?

推荐答案

更新您的Node.js版本.

Update your Node.js version.

我在Node v10上运行的Angular v10项目中收到此警告.我将Node.js更新为LTS版本(当前为14.5),警告消失了.

I was getting this warning in Angular v10 projects running on Node v10. I updated Node.js to LTS version (currently 14.5) and the warning was gone.

根据 Angular文档:Angular需要当前有效的LTS或维护LTS版本的Node.js.

According to Angular docs: Angular requires a current, active LTS, or maintenance LTS version of Node.js.

因此,基本上它可以在版本10 atm上运行,但是如果可以的话,更新环境始终是一个好主意.

So basically it does work on version 10 atm, but it's always a good idea to update your environment if you can.

这篇关于如何避免angular :-(节点:19100)中的错误ExperimentingWarning:fs.promises API是实验性的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆