What's the reason for NPM Error on firebase deploy --only functions

前端 未结 3 1233
闹比i
闹比i 2021-01-11 14:42

I am recently getting this error when attempting to deploy my firebase functions. However, I didn\'t change any dependencies since last successful deploy...

         


        
相关标签:
3条回答
  • 2021-01-11 14:57

    Firebase status page mentions that there is an NPM registry outage

    https://status.firebase.google.com/incident/Functions/18033

    0 讨论(0)
  • 2021-01-11 15:05

    There has been an outage https://status.npmjs.org/incidents/v22ffls5cd6h - they recommend changing your DNS as ISP's are caching the wrong details.

    0 讨论(0)
  • 2021-01-11 15:09

    Run this line(I know it's ugly, but it works):

    dig www.npmjs.com @1.1.1.1 | tac | echo "$(grep -oP 'www\.npmjs\.com(.)+\t\K([\d\.]*)' -m 1) www.npmjs.com"
    

    Copy and paste the output to the end of /etc/hosts file

    0 讨论(0)
提交回复
热议问题