How to avoid the error in angular :- (node:19100) ExperimentalWarning: The fs.promises API is experimental?

匆匆过客 提交于 2021-01-28 09:06:16

问题


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?


回答1:


Update your Node.js version.

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.

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

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



来源:https://stackoverflow.com/questions/62685421/how-to-avoid-the-error-in-angular-node19100-experimentalwarning-the-fs-pr

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!