问题
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