Closed ghost closed 3 years ago
I need npm config set registry
Task :packageJson 00:18:21 :packageJson 00:18:21 Task :testPackageJson 00:18:21 :testPackageJson 00:18:23 Task :rootPackageJson 00:18:23 :rootPackageJson 00:18:54 Task :kotlinNpmInstall 00:18:54 :kotlinNpmInstall 00:19:25 warning workspace-aggregator-8908ca4f-49d4-414b-89a1-72af9e34f955 > mytool-frontend-test > mocha > mkdirp@0.5.3: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.) 00:19:53 warning workspace-aggregator-8908ca4f-49d4-414b-89a1-72af9e34f955 > mytool-frontend-test > mocha > yargs-unparser > flat@4.1.0: Fixed a prototype pollution security issue in 4.1.0, please upgrade to ^4.1.1 or ^5.0.1. 00:20:04 warning workspace-aggregator-8908ca4f-49d4-414b-89a1-72af9e34f955 > mytool-frontend > webpack > watchpack > watchpack-chokidar2 > chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies. 00:20:04 warning workspace-aggregator-8908ca4f-49d4-414b-89a1-72af9e34f955 > mytool-frontend > webpack > watchpack > watchpack-chokidar2 > chokidar > fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2. 00:20:40 warning workspace-aggregator-8908ca4f-49d4-414b-89a1-72af9e34f955 > mytool-frontend > webpack > micromatch > snapdragon > source-map-resolve > resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated 00:20:41 warning workspace-aggregator-8908ca4f-49d4-414b-89a1-72af9e34f955 > mytool-frontend > webpack > micromatch > snapdragon > source-map-resolve > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated 00:40:50 error An unexpected error occurred: "https://registry.yarnpkg.com/dukat/-/dukat-0.5.7.tgz: unexpected end of file". 00:40:51 Task :kotlinNpmInstall FAILED 00:40:51
00:40:51 Execution failed for task ':kotlinNpmInstall'. java.lang.IllegalStateException: Process 'Resolving NPM dependencies using yarn' returns 1
yarn install v1.22.4
info No lockfile found. [1/4] Resolving packages... info There appears to be trouble with your network connection. Retrying... info There appears to be trouble with your network connection. Retrying... [2/4] Fetching packages... info There appears to be trouble with your network connection. Retrying... info There appears to be trouble with your network connection. Retrying... info There appears to be trouble with your network connection. Retrying... info There appears to be trouble with your network connection. Retrying... info If you think this is a bug, please open a bug report with the information provided in "D:\TeamCity\buildAgent\work\d20ba9b7350c241f\build\js\yarn-error.log". info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
just create a file .npmrc
in projecxt root,with content
registry=https://registry.npm.taobao.org
How to set up npm registry during Gradle build, because we cannot connect to the official npm registry