文档开发者中心
我的

Win10.64安装deveco-studio-2.1.0.501,安装Js version 2.1.1.21失败,卡在deccjsunit取得失败

环境有代理,用户目录下设置.npmrc如下:

registry=https://repo.huaweicloud.com/repository/npm/

proxy=http://xxx.xxx.xxx.xxx:8080

https-proxy=https://xxx.xxx.xxx.xxx:8080

Node.Js and NPM设置的路径都是C:\Program Files\Huawei\DevEco Studio 2.1.0.501\tools\nodejs。

中间试着按照论坛的解决方法安装node-v12.16.2-x64,再次安装也不行。

错误如下:

Components to install:

- Js version 2.1.1.21 (js)

Downloading https://update.dbankcdn.com/download/data/pub_13/HWHOTA_hota_900_9/55/v3/bLpDkR2ASXGBKEfy4oVKcg/js-windows-2.1.1.21-Release.zip

Unzipping C:\Dev\Huawei\SDK\.temp\js\2.1.1.21\install\js-windows-2.1.1.21-Release.zip

Installing Js dependencies...

Running 'npm install'...

npm ERR! code EPROTO

npm ERR! errno EPROTO

npm ERR! request to https://repo.huaweicloud.com/repository/npm/deccjsunit failed, reason: write EPROTO 1784:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:c:\ws\deps\openssl\openssl\ssl\record\ssl3_record.c:332:

npm ERR! 

npm ERR! A complete log of this run can be found in:

npm ERR!     C:\Users\xxx\AppData\Roaming\npm-cache\_logs\2022-02-07T06_50_27_800Z-debug.log

Install failed. 

Install js dependencies failed. Unable to run 'npm install'. Js installation failed. See https://developer.harmonyos.com/cn/docs/documentation/doc-guides/environment_config-0000001052902427#ZH-CN_TOPIC_0000001154865731__section167519616516

点赞
收藏
回复
6
分享
举报
浏览1294 发布于2022-02-07 06:58未知归属地
全部评论
最多点赞
最新发布
最早发布

是npm代理的问题,没有设置user和password字段,这两个字段公司也不会告诉我啊,无解了?

PS C:\Program Files\nodejs> npm info express

npm ERR! code EPROTO

npm ERR! syscall write

npm ERR! errno EPROTO

npm ERR! request to https://repo.huaweicloud.com/repository/npm/express failed, reason: write EPROTO 12688:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:c:\ws\deps\openssl\openssl\ssl\record\ssl3_record.c:332:

npm ERR!

npm ERR! A complete log of this run can be found in:

npm ERR!     C:\Users\xxx\AppData\Local\npm-cache\_logs\2022-02-08T00_05_24_117Z-debug.log

3
3楼回复于2022-02-08 00:12 未知归属地
  • sandwich
    您这个应该就是在公司登录的账号密码吧,可以问一下公司的相关人员!
    2022-02-08 06:55 未知归属地
  • 135******89回复sandwich
    建议:能提供一个本地安装包,最少是一套全乎点,包括Js和Native。 先不折腾了,想支持但能力有限。
    2022-02-08 10:23 未知归属地
  • sandwich回复135******89
    抱歉,这个本地安装包发不了您!
    2022-02-09 01:36 未知归属地
开发者您好,网络受限才需要配置代理,代理可以按照官网文档进行配置哈!https://developer.harmonyos.com/cn/docs/documentation/doc-guides/installation_process-0000001071425528
2楼回复于2022-02-07 08:59 未知归属地

您好,相关问题已经反馈给工作人员,请耐心等待,感谢您对华为开发者论坛的支持。

1楼回复于2022-02-07 08:00 未知归属地
写回答
新增插入模板功能
一键使用模板,快速填写内容,轻松发帖~
知道了
  • 为了保障您的信息安全,请勿上传您的敏感个人信息(如您的密码等信息)和您的敏感资产信息(如关键源代码、签名私钥、调试安装包、业务日志等信息),且您需自行承担由此产生的信息泄露等安全风险。
  • 如您发布的内容为转载内容,请注明内容来源。

我要发帖子

了解社区公约,与您携手共创和谐专业的开发者社区。