鸿蒙HarmonyOS SDK API安装失败
错误信息:Components to install:- JS version 2.2.0.3 (js)- Java version 2.2.0.3 (java)Downloading https://update.dbankcdn.com/download/data/pub_13/HWHOTA_hota_900_9/b4/v3/y1YzCU0nQVyLv3JPYBxPHw/js-windows-
·
安装鸿蒙SDK JSAPI6的时候死活安装不上,报下边的错误
尝试了各种办法都不行,官方文档让清理npm缓存,但是没啥用。换自己安装的Node.js也没用,用代理,上梯子都不行。问题是定位在网络上,最后把NPM的代理配置文件给删除了就好了,在“c:/users/用户名/”目录下的.npmrc文件
错误信息:
Components to install:
- JS version 2.2.0.3 (js)
- Java version 2.2.0.3 (java)
Downloading https://update.dbankcdn.com/download/data/pub_13/HWHOTA_hota_900_9/b4/v3/y1YzCU0nQVyLv3JPYBxPHw/js-windows-2.2.0.3-Release.zip
Unzipping D:\Huawei\Sdk\.temp\js\2.2.0.3\install\js-windows-2.2.0.3-Release.zip
Installing JS dependencies...
Running 'npm install'...
npm ERR! code ECONNREFUSED
npm ERR! errno ECONNREFUSED
npm ERR! FetchError: request to https://repo.huaweicloud.com/repository/npm/@babel/helper-plugin-utils/-/helper-plugin-utils-7.10.4.tgz failed, reason: connect ECONNREFUSED 127.0.0.1:1181
npm ERR! at ClientRequest.<anonymous> (D:\nodejs\node_modules\npm\node_modules\node-fetch-npm\src\index.js:68:14)
npm ERR! at ClientRequest.emit (events.js:315:20)
npm ERR! at onerror (D:\nodejs\node_modules\npm\node_modules\agent-base\index.js:101:9)
npm ERR! at callbackError (D:\nodejs\node_modules\npm\node_modules\agent-base\index.js:123:5)
npm ERR! at runMicrotasks (<anonymous>)
npm ERR! at processTicksAndRejections (internal/process/task_queues.js:97:5)
npm ERR! FetchError: request to https://repo.huaweicloud.com/repository/npm/@babel/helper-plugin-utils/-/helper-plugin-utils-7.10.4.tgz failed, reason: connect ECONNREFUSED 127.0.0.1:1181
npm ERR! at ClientRequest.<anonymous> (D:\nodejs\node_modules\npm\node_modules\node-fetch-npm\src\index.js:68:14)
npm ERR! at ClientRequest.emit (events.js:315:20)
npm ERR! at onerror (D:\nodejs\node_modules\npm\node_modules\agent-base\index.js:101:9)
npm ERR! at callbackError (D:\nodejs\node_modules\npm\node_modules\agent-base\index.js:123:5)
npm ERR! at runMicrotasks (<anonymous>)
npm ERR! at processTicksAndRejections (internal/process/task_queues.js:97:5) {
npm ERR! type: 'system',
npm ERR! errno: 'ECONNREFUSED',
npm ERR! code: 'ECONNREFUSED',
npm ERR! parent: '@babel/plugin-transform-runtime'
npm ERR! }
npm ERR!
npm ERR! If you are behind a proxy, please make sure that the
npm ERR! 'proxy' config is set properly. See: 'npm help config'
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\19732\AppData\Roaming\npm-cache\_logs\2021-11-27T09_14_51_066Z-debug.log
Install JS 2.2.0.3 failed.
Install JS dependencies failed.
Cause: Unable to run npm install.
Solution: See https://developer.harmonyos.com/cn/docs/documentation/doc-guides/faq-development-environment-0000001168829643#section1311117111474
更多推荐
所有评论(0)