Error: Install eTS 3.1.0.0 failed.

win7 64位系统

Downloading https://downloads.openharmony.cn/sdk/component/3.1.0.0/windows/ets-windows-3.1.0.0-Beta1.zip

Unzipping D:\OpenHarmony\Sdk\.temp\ets\3.1.0.0\install\ets-windows-3.1.0.0-Beta1.zip

Installing eTS dependencies...

Running 'npm install'...

Error: Install eTS 3.1.0.0 failed.

Error: Install eTS dependencies failed.

Cause: Unable to run npm install.

Solution: See https://developer.harmonyos.com/cn/docs/documentation/doc-guides/faq-development-environment-0000001168829643#section1311117111474

查看了相关文档,那个“​NPM代理配置​”文档为空,无法查看。按后续步骤处理,在命令行运行


npm cache clean -f 时,系统提示“无法定位程序输入点GetHostNameW于动态链接库WS2_32.dll上”。试着运行regsvr32注册,无法修复,“加载失败,无法定位模块”,在系统文件夹中查看,该DLL文件存在于system32和syswow64文件夹内。

有没有其它办法手动下载安装?


鸿蒙
DevEco Studio
2022-11-16 14:34:09
浏览
收藏 0
回答 1
待解决
回答 1
按赞同
/
按时间
Virgint
2

在cmd内执行npm -v和node -v看看版本号是否为

npm:6.14.16

node: 14.19.1

如果不是的话,请在DevEco Studio的Setting内找到Node.js and npm,并点击Edit->Download下载DevEco Studio推荐版本的node,并将nodejs路径配置到系统环境变量Path内,并删除其他版本的nodejs环境变量。重启cmd,查看npm与node的版本号为上述版本。

最后重启DevEco Studio,尝试重新下载安装SDK

分享
微博
QQ
微信
回复
2022-11-16 16:40:39
相关问题
Failure[INSTALL_PARSE_FAILED_USESDK_ERROR]
8706浏览 • 5回复 已解决
Failure[INSTALL_FAILED_BUNDLE_INFO_NOT_CONFIG]
2799浏览 • 1回复 待解决
ERROR_GET_BUNDLE_INSTALLER_FAILED
1335浏览 • 1回复 待解决