鸿蒙HarmonyOS SDK API安装失败

安装鸿蒙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.zipUnzipping D:\Huawei\Sdk\.temp\js\2.2.0.3\install\js-windows-2.2.0.3-Release.zipInstalling JS dependencies...Running ‘npm install‘...npm ERR! code ECONNREFUSEDnpm ERR! errno ECONNREFUSEDnpm 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:1181npm 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:1181npm 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 thenpm 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.logInstall 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
极客网企业会员

免责声明:本网站内容主要来自原创、合作伙伴供稿和第三方自媒体作者投稿,凡在本网站出现的信息,均仅供参考。本网站将尽力确保所提供信息的准确性及可靠性,但不保证有关资料的准确性及可靠性,读者在使用前请进一步核实,并对任何自主决定的行为负责。本网站对有关资料所引致的错误、不确或遗漏,概不负任何法律责任。任何单位或个人认为本网站中的网页或链接内容可能涉嫌侵犯其知识产权或存在不实内容时,应及时向本网站提出书面权利通知或不实情况说明,并提供身份证明、权属证明及详细侵权或不实情况证明。本网站在收到上述法律文件后,将会依法尽快联系相关文章源头核实,沟通删除相关内容或断开相关链接。