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

前端 未结 3 1276
闹比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 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

提交回复
热议问题