sdkmgr 安装 js:5一直失败
Installing JS:2.1.1.21...
Downloading https://update.dbankcdn.com/download/data/pub_13/HWHOTA_hota_900_9/55/v3/bLpDkR2ASXGBKEfy4oVKcg/js-linux-2.1.1.21-Release.zip
Unzipping /root/HarmonySdk/.temp/js/2.1.1.21/install/js-linux-2.1.1.21-Release.zip
Installing JS dependencies...
Running 'npm install'...
npm ERR! code ENOTFOUND
npm ERR! syscall getaddrinfo
npm ERR! errno ENOTFOUND
npm ERR! network request to http://cmc.centralrepo.rnd.huawei.com/artifactory/api/npm/npm-public/deccjsunit/-/deccjsunit-0.0.1.tgz failed, reason: getaddrinfo ENOTFOUND cmc.centralrepo.rnd.huawei.com
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-12-22T10_55_54_458Z-debug-0.log
Install JS 2.1.1.21 failed.
com.huawei.deveco.sdkmanager.core.task.ComponentException
Install JS:2.1.1.21 fail!
Install JS dependencies failed.
Cause: Unable to run npm install.
Solution: See https://developer.harmonyos.com/en/docs/documentation/doc-guides/faq-development-environment-0000001168829643#section1311117111474
详细日志:
2688 timing reify:rollback:createSparse Completed in 1088ms
2689 timing reify:rollback:retireShallow Completed in 0ms
2690 timing command:install Completed in 17418ms
2691 verbose type system
2692 verbose stack FetchError: request to http://cmc.centralrepo.rnd.huawei.com/artifactory/api/npm/npm-public/deccjsunit/-/deccjsunit-0.0.1.tgz failed, reason: getaddrinfo ENOTFOUND cmc.centralrepo.rnd.huawei.com
2692 verbose stack at ClientRequest.<anonymous> (/root/node-v17.3.0-linux-x64/lib/node_modules/npm/node_modules/minipass-fetch/lib/index.js:110:14)
2692 verbose stack at ClientRequest.emit (node:events:390:28)
2692 verbose stack at Socket.socketErrorListener (node:_http_client:442:9)
2692 verbose stack at Socket.emit (node:events:402:35)
2692 verbose stack at emitErrorNT (node:internal/streams/destroy:164:8)
2692 verbose stack at emitErrorCloseNT (node:internal/streams/destroy:129:3)
2692 verbose stack at processTicksAndRejections (node:internal/process/task_queues:83:21)
2693 verbose cwd /root/HarmonySdk/.temp/js/2.1.1.21/install/unzip/js/build-tools/ace-loader
2694 verbose Linux 5.4.119-1-tlinux4-0005
2695 verbose argv "/root/node-v17.3.0-linux-x64/bin/node" "/usr/bin/npm" "install" "--fetch-retry-mintimeout=10000" "--fetch-retry-maxtimeout=15000" "--fetch-retries=1" "-d" "--scripts-prepend-node-path=auto"
2696 verbose node v17.3.0
2697 verbose npm v8.3.0
2698 error code ENOTFOUND
2699 error syscall getaddrinfo
2700 error errno ENOTFOUND
2701 error network request to http://cmc.centralrepo.rnd.huawei.com/artifactory/api/npm/npm-public/deccjsunit/-/deccjsunit-0.0.1.tgz failed, reason: getaddrinfo ENOTFOUND cmc.centralrepo.rnd.huawei.com
2702 error network This is a problem related to network connectivity.
2702 error network In most cases you are behind a proxy or have bad network settings.
2702 error network
2702 error network If you are behind a proxy, please make sure that the
- 为了保障您的信息安全,请勿上传您的敏感个人信息(如您的密码等信息)和您的敏感资产信息(如关键源代码、签名私钥、调试安装包、业务日志等信息),且您需自行承担由此产生的信息泄露等安全风险。
- 如您发布的内容为转载内容,请注明内容来源。
我要发帖子








































苏公安网备 32011402010933号