I'm currently experiencing this issue when installing using the private registry. Here's the output from my latest failed vercel build. (Experiencing same logs when re-installing node modules locally)
npm ERR! code E502
npm ERR! 502 Bad Gateway - GET https://npm.greensock.com/@gsap%2fshockingly
npm ERR! A complete log of this run can be found in:
npm ERR! /vercel/.npm/_logs/2023-03-13T19_38_01_778Z-debug-0.log
Error: Command "npm install" exited with 1
BUILD_FAILED: Command "npm install" exited with 1