Unable to build - Ionic V3

We are trying to release a live update and it is failing with the below output

Running with gitlab-runner 11.3.1 (0aa5179e)
  on Ionic Deploy Runner c9648220
Using Kubernetes namespace: ionic-runners
Using Kubernetes executor with image 319312831725.dkr.ecr.us-west-2.amazonaws.com/ionic-runners/deploy ...
Waiting for pod ionic-runners/runner-c9648220-project-0-concurrent-072ncw to be running, status is Pending
Running on runner-c9648220-project-0-concurrent-072ncw via gitlab-runner-55f5c4f79c-fhlss...
Cloning repository...
Cloning into '/builds/zersys/Bajajdash'...
Checking out b05e1440 as Enterprise_UAT_BUILD...
Updating/initializing submodules...
$ run "fetch-updates"
$ run "build-app"
[10:01:10]: ------------------------------
[10:01:10]: --- Step: default_platform ---
[10:01:10]: ------------------------------
[10:01:10]: Driving the lane 'android deploy_build' 🚀
[10:01:12]: ---------------------------
[10:01:12]: --- Step: build_summary ---
[10:01:12]: ---------------------------

+---------------------+---------------------------+
|                  Build Summary                  |
+---------------------+---------------------------+
| Job ID              | 6947322                   |
| Node.js version     | v12.17.0                  |
| Cordova CLI version | 9.0.3 (cordova-lib@9.0.2) |
| npm version         | 6.14.4                    |
+---------------------+---------------------------+

[10:01:12]: ---------------------------------
[10:01:12]: --- Step: add_git_credentials ---
[10:01:12]: ---------------------------------
[10:01:12]: Writing git-credentials files
[10:01:12]: git-credentials successfully added to project
[10:01:12]: --------------------------------
[10:01:12]: --- Step: detect_native_type ---
[10:01:12]: --------------------------------
[10:01:12]: Checking if cordova or capacitor project
[10:01:12]: Cordova project detected
[10:01:12]: -------------------------
[10:01:12]: --- Step: get_web_dir ---
[10:01:12]: -------------------------
[10:01:12]: webDir is `www`
[10:01:12]: -------------------------------
[10:01:12]: --- Step: modify_config_xml ---
[10:01:12]: -------------------------------
[10:01:12]: No custom native config detected.
[10:01:12]: ---------------------------
[10:01:12]: --- Step: build_pro_app ---
[10:01:12]: ---------------------------
[10:01:12]: Installing Dependencies
[10:01:12]: $ npm install --quiet --no-optional
[10:01:12]: ▸ > bajajone@0.0.1 preinstall /builds/zersys/Bajajdash
[10:01:12]: ▸ > ./cordovaOverride.sh
[10:01:12]: ▸ In Appflow...using cordova@8.1.2
[10:01:16]: ▸ removed 429 packages in 2.928s
[10:01:25]: ▸ /usr/local/nvm/versions/node/v12.17.0/bin/cordova -> /usr/local/nvm/versions/node/v12.17.0/lib/node_modules/cordova/bin/cordova
[10:01:25]: ▸ + cordova@8.1.2
[10:01:25]: ▸ added 594 packages from 523 contributors in 8.873s
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/async-48bdc28e/dist/async.min.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/_baseConvert.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/@types/jquery-35fe373c/JQueryStatic.d.ts'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/_convertBrowser.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/_falseOptions.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/_mapping.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/_util.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/add.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/after.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/all.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/allPass.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/always.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/any.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/anyPass.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/apply.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/array.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/ary.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/assign.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/assignAll.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/assignAllWith.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/assignIn.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/assignInAll.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/assignInAllWith.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/assignInWith.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/assignWith.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/assoc.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/assocPath.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/at.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/attempt.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/before.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/bind.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/bindAll.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/bindKey.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/camelCase.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/capitalize.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/castArray.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/ceil.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/chain.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/chunk.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/clamp.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/clone.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/cloneDeep.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/cloneDeepWith.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/cloneWith.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/collection.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/commit.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/compact.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/complement.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/compose.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/concat.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/cond.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/conforms.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/conformsTo.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/constant.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/contains.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/convert.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/countBy.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/create.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/curry.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/curryN.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/curryRight.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/curryRightN.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/date.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/debounce.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/deburr.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/defaults.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/defaultsAll.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/defaultsDeep.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/defaultsDeepAll.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/defaultTo.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/defer.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/delay.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/difference.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/differenceBy.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/differenceWith.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/dissoc.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/dissocPath.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/divide.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/drop.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/dropLast.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/dropLastWhile.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/dropRight.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/dropRightWhile.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/dropWhile.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/each.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/eachRight.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/endsWith.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/entries.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/entriesIn.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/eq.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/equals.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/escape.js'
[10:01:28]: ▸ npm WARN tar ENOENT: no such file or directory, open '/builds/zersys/Bajajdash/node_modules/.staging/lodash-02b0d297/fp/escapeRegExp.js'
[10:01:29]: ▸ npm ERR! code E404
[10:01:29]: ▸ npm ERR! 404 Not Found - GET https://registry.npmjs.org/@tweenjs/tween.js/-/tween.js-17.4.0.tgz
[10:01:29]: ▸ npm ERR! 404
[10:01:29]: ▸ npm ERR! 404  '@tweenjs/tween.js@17.4.0' is not in the npm registry.
[10:01:29]: ▸ npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
[10:01:29]: ▸ npm ERR! 404 It was specified as a dependency of 'Bajajdash'
[10:01:29]: ▸ npm ERR! 404
[10:01:29]: ▸ npm ERR! 404 Note that you can also install from a
[10:01:29]: ▸ npm ERR! 404 tarball, folder, http url, or git url.
[10:01:29]: ▸ npm ERR! A complete log of this run can be found in:
[10:01:29]: ▸ npm ERR!     /root/.npm/_logs/2020-08-06T10_01_29_275Z-debug.log
+------------------+----------------------+
|              Lane Context               |
+------------------+----------------------+
| DEFAULT_PLATFORM | ios                  |
| PLATFORM_NAME    | android              |
| LANE_NAME        | android deploy_build |
| PROJECT_WEB_DIR  | www                  |
+------------------+----------------------+
[10:01:29]: Exit status of command 'npm install --quiet --no-optional' was 1 instead of 0.


This was working fine until a few days back. Any ideas as to what the issue is ?

Regards,

Same problem here. It seems that AppFlow can’t access npm registry anymore.

npm ERR! code E404
npm ERR! 404 Not Found - GET http://registry.npmjs.org/@ionic%2fstorage - Not found
npm ERR! 404 
npm ERR! 404  '@ionic/storage@2.1.3' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 It was specified as a dependency of 'project-0'
npm ERR! 404 
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/ionic/.npm/_logs/2020-08-06T11_16_11_143Z-debug.log

@loicfavory Yes have also this issue , because even when i tried to rebuild a build that was successfully built it was throwing same issue

The NPM registry was having some issues earlier today.