Windows 10 - 节点:无法初始化 ICU(检查 NODE_ICU_DATA 或 --icu-data-dir 参数)错误 [英] Windows 10 - node: could not initialize ICU (check NODE_ICU_DATA or --icu-data-dir parameters) error

查看:104
本文介绍了Windows 10 - 节点:无法初始化 ICU(检查 NODE_ICU_DATA 或 --icu-data-dir 参数)错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一个类似于这篇文章的问题:节点:无法初始化ICU(检查NODE_ICU_DATA 或--icu-data-dir 参数)

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

我收到相同的错误消息:node: could not initialize ICU (check NODE_ICU_DATA or --icu-data-dir parameters"与新的节点安装.这是一台全新的计算机,装有 Windows 10 Pro 系统版本 10.0.17763 Build 17763.我尝试从node.js网站安装10.16.0 LTS版本和12.6.0当前版本.在这两种情况下,我都有完全相同的错误,无论我以管理员身份还是普通用户身份运行都没有关系.我不能使用上面描述的解决方案,因为 npm 将无法运行(同样的错误).我不知道下一步该怎么做.

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.

推荐答案

我设法解决了这个问题.事实证明,其他软件正在使用环境变量:NODE_ICU_DATA.
我已删除 NODE_ICU_DATA 变量,重新启动计算机并再次安装节点.
现在工作正常.

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.

这篇关于Windows 10 - 节点:无法初始化 ICU(检查 NODE_ICU_DATA 或 --icu-data-dir 参数)错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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