@iamwillbk Thank you! If I could, I would upvote your solution a thousand times. It worked perfectly after several attempts / variations of the Vercel way.
Since your screenshot, Vercel changed their environment variables slightly... No need to select Plaintext anymore, just make sure to start a new line for each line of the .npmrc