Windows 10 - node: could not initialize ICU (check NODE_ICU_DATA or --icu-data-dir parameters) error

ε祈祈猫儿з 提交于 2019-12-13 02:56:53

问题


An issue similar to this post: node: could not initialize ICU (check NODE_ICU_DATA or --icu-data-dir parameters)

I get the same error message:"node: could not initialize ICU (check NODE_ICU_DATA or --icu-data-dir parameters" with the fresh node installation. It is a brand new computer with Windows 10 Pro system version 10.0.17763 Build 17763. I have tried installing version 10.16.0 LTS and version 12.6.0 current from node.js website. In both cases I have exactly the same error, does not matter if I run as admin or a normal user. I cannot use the solutions described above as npm will not run (same error). I have no idea what to do next.


回答1:


I managed to sort it out. As it turns out, other software was using the environment variable: NODE_ICU_DATA.
I have removed NODE_ICU_DATA variable, restarted computer and installed node again.
It is working fine now.



来源:https://stackoverflow.com/questions/56890588/windows-10-node-could-not-initialize-icu-check-node-icu-data-or-icu-data-d

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