fix npm install/build issues caused by huaweicloud mirror site

Signed-off-by: lanshouren <lanshouren@huawei.com>
Change-Id: Ie88cc5fdd7c82e87b242446fb66cece6ec049a54
This commit is contained in:
lanshouren 2022-06-24 18:05:58 +08:00
parent 79304fb35d
commit f035f5c364
3 changed files with 1468 additions and 1316 deletions

2778
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -42,6 +42,6 @@
"sinon": "^9.2.2",
"ts-node": "^9.0.0",
"tslib": "^2.0.3",
"typescript": "^4.1.2"
"typescript": "4.1.3"
}
}

View File

@ -1,5 +1,5 @@
#!/bin/bash
# Copyright (c) 2021 Huawei Device Co., Ltd.
# Copyright (c) 2021-2022 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
@ -34,7 +34,7 @@ node_js_name=node-${node_js_ver}-${host_platform}-x64
cd ${code_dir}/third_party/jsframework/
export PATH=${code_dir}/prebuilts/build-tools/common/nodejs/${node_js_name}/bin:$PATH
npm config set registry http://registry.npm.taobao.org
npm config set registry https://repo.huaweicloud.com/repository/npm/
npm install
cd ${code_dir}