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

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
11
down vote

favorite
1












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



✔ functions: all necessary APIs are enabled
i functions: preparing functions directory for uploading...
i functions: packaged functions (57.25 KB) for uploading
✔ functions: functions folder uploaded successfully
i functions: updating Node.js 6 function firestoreEmail(us-central1)...
i functions: updating Node.js 6 function apiMain(us-central1)...
✔ functions[apiMain(us-central1)]: Successful update operation.
⚠ functions[firestoreEmail(us-central1)]: Deployment error.
Build failed: exit status 1
npm ERR! Linux 4.4.0-133-generic
npm ERR! argv "/nodejs/bin/node" "/nodejs/bin/npm" "--global-style" "--production" "--fetch-retries=5" "--fetch-retry-factor=2" "--fetch-retry-mintimeout=1000" "install" "/workspace"
npm ERR! node v6.14.0
npm ERR! npm v3.10.10

npm ERR! Hostname/IP doesn't match certificate's altnames: "Host: registry.npmjs.org. is not in the cert's altnames: DNS:a.sni.fastly.net, DNS:a.sni.global-ssl.fastly.net"
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR! /workspace/npm-debug.log



Functions deploy had errors. To continue deploying other features (such as database), run:
firebase deploy --except functions

Error: Functions did not deploy properly.






share|improve this question






















  • I get the same error when running $ npm install -g firebase-tools
    – Matt
    Sep 1 at 11:54










  • got the same error when trying to deploy my functions. Thank you for sharing
    – Antuan
    Sep 1 at 15:39














up vote
11
down vote

favorite
1












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



✔ functions: all necessary APIs are enabled
i functions: preparing functions directory for uploading...
i functions: packaged functions (57.25 KB) for uploading
✔ functions: functions folder uploaded successfully
i functions: updating Node.js 6 function firestoreEmail(us-central1)...
i functions: updating Node.js 6 function apiMain(us-central1)...
✔ functions[apiMain(us-central1)]: Successful update operation.
⚠ functions[firestoreEmail(us-central1)]: Deployment error.
Build failed: exit status 1
npm ERR! Linux 4.4.0-133-generic
npm ERR! argv "/nodejs/bin/node" "/nodejs/bin/npm" "--global-style" "--production" "--fetch-retries=5" "--fetch-retry-factor=2" "--fetch-retry-mintimeout=1000" "install" "/workspace"
npm ERR! node v6.14.0
npm ERR! npm v3.10.10

npm ERR! Hostname/IP doesn't match certificate's altnames: "Host: registry.npmjs.org. is not in the cert's altnames: DNS:a.sni.fastly.net, DNS:a.sni.global-ssl.fastly.net"
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR! /workspace/npm-debug.log



Functions deploy had errors. To continue deploying other features (such as database), run:
firebase deploy --except functions

Error: Functions did not deploy properly.






share|improve this question






















  • I get the same error when running $ npm install -g firebase-tools
    – Matt
    Sep 1 at 11:54










  • got the same error when trying to deploy my functions. Thank you for sharing
    – Antuan
    Sep 1 at 15:39












up vote
11
down vote

favorite
1









up vote
11
down vote

favorite
1






1





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



✔ functions: all necessary APIs are enabled
i functions: preparing functions directory for uploading...
i functions: packaged functions (57.25 KB) for uploading
✔ functions: functions folder uploaded successfully
i functions: updating Node.js 6 function firestoreEmail(us-central1)...
i functions: updating Node.js 6 function apiMain(us-central1)...
✔ functions[apiMain(us-central1)]: Successful update operation.
⚠ functions[firestoreEmail(us-central1)]: Deployment error.
Build failed: exit status 1
npm ERR! Linux 4.4.0-133-generic
npm ERR! argv "/nodejs/bin/node" "/nodejs/bin/npm" "--global-style" "--production" "--fetch-retries=5" "--fetch-retry-factor=2" "--fetch-retry-mintimeout=1000" "install" "/workspace"
npm ERR! node v6.14.0
npm ERR! npm v3.10.10

npm ERR! Hostname/IP doesn't match certificate's altnames: "Host: registry.npmjs.org. is not in the cert's altnames: DNS:a.sni.fastly.net, DNS:a.sni.global-ssl.fastly.net"
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR! /workspace/npm-debug.log



Functions deploy had errors. To continue deploying other features (such as database), run:
firebase deploy --except functions

Error: Functions did not deploy properly.






share|improve this question














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



✔ functions: all necessary APIs are enabled
i functions: preparing functions directory for uploading...
i functions: packaged functions (57.25 KB) for uploading
✔ functions: functions folder uploaded successfully
i functions: updating Node.js 6 function firestoreEmail(us-central1)...
i functions: updating Node.js 6 function apiMain(us-central1)...
✔ functions[apiMain(us-central1)]: Successful update operation.
⚠ functions[firestoreEmail(us-central1)]: Deployment error.
Build failed: exit status 1
npm ERR! Linux 4.4.0-133-generic
npm ERR! argv "/nodejs/bin/node" "/nodejs/bin/npm" "--global-style" "--production" "--fetch-retries=5" "--fetch-retry-factor=2" "--fetch-retry-mintimeout=1000" "install" "/workspace"
npm ERR! node v6.14.0
npm ERR! npm v3.10.10

npm ERR! Hostname/IP doesn't match certificate's altnames: "Host: registry.npmjs.org. is not in the cert's altnames: DNS:a.sni.fastly.net, DNS:a.sni.global-ssl.fastly.net"
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR! /workspace/npm-debug.log



Functions deploy had errors. To continue deploying other features (such as database), run:
firebase deploy --except functions

Error: Functions did not deploy properly.








share|improve this question













share|improve this question




share|improve this question








edited Sep 1 at 14:00









Frank van Puffelen

206k24346368




206k24346368










asked Sep 1 at 10:14









Mutual Exception

545415




545415











  • I get the same error when running $ npm install -g firebase-tools
    – Matt
    Sep 1 at 11:54










  • got the same error when trying to deploy my functions. Thank you for sharing
    – Antuan
    Sep 1 at 15:39
















  • I get the same error when running $ npm install -g firebase-tools
    – Matt
    Sep 1 at 11:54










  • got the same error when trying to deploy my functions. Thank you for sharing
    – Antuan
    Sep 1 at 15:39















I get the same error when running $ npm install -g firebase-tools
– Matt
Sep 1 at 11:54




I get the same error when running $ npm install -g firebase-tools
– Matt
Sep 1 at 11:54












got the same error when trying to deploy my functions. Thank you for sharing
– Antuan
Sep 1 at 15:39




got the same error when trying to deploy my functions. Thank you for sharing
– Antuan
Sep 1 at 15:39












3 Answers
3






active

oldest

votes

















up vote
17
down vote



accepted










Firebase status page mentions that there is an NPM registry outage



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






share|improve this answer



























    up vote
    2
    down vote













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






    share|improve this answer



























      up vote
      1
      down vote













      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(.)+tK([d.]*)' -m 1) www.npmjs.com"


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






      share|improve this answer




















        Your Answer





        StackExchange.ifUsing("editor", function ()
        StackExchange.using("externalEditor", function ()
        StackExchange.using("snippets", function ()
        StackExchange.snippets.init();
        );
        );
        , "code-snippets");

        StackExchange.ready(function()
        var channelOptions =
        tags: "".split(" "),
        id: "1"
        ;
        initTagRenderer("".split(" "), "".split(" "), channelOptions);

        StackExchange.using("externalEditor", function()
        // Have to fire editor after snippets, if snippets enabled
        if (StackExchange.settings.snippets.snippetsEnabled)
        StackExchange.using("snippets", function()
        createEditor();
        );

        else
        createEditor();

        );

        function createEditor()
        StackExchange.prepareEditor(
        heartbeatType: 'answer',
        convertImagesToLinks: true,
        noModals: false,
        showLowRepImageUploadWarning: true,
        reputationToPostImages: 10,
        bindNavPrevention: true,
        postfix: "",
        onDemand: true,
        discardSelector: ".discard-answer"
        ,immediatelyShowMarkdownHelp:true
        );



        );













         

        draft saved


        draft discarded


















        StackExchange.ready(
        function ()
        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f52127111%2fwhats-the-reason-for-npm-error-on-firebase-deploy-only-functions%23new-answer', 'question_page');

        );

        Post as a guest






























        3 Answers
        3






        active

        oldest

        votes








        3 Answers
        3






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes








        up vote
        17
        down vote



        accepted










        Firebase status page mentions that there is an NPM registry outage



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






        share|improve this answer
























          up vote
          17
          down vote



          accepted










          Firebase status page mentions that there is an NPM registry outage



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






          share|improve this answer






















            up vote
            17
            down vote



            accepted







            up vote
            17
            down vote



            accepted






            Firebase status page mentions that there is an NPM registry outage



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






            share|improve this answer












            Firebase status page mentions that there is an NPM registry outage



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







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Sep 1 at 12:21









            gijoe

            35414




            35414






















                up vote
                2
                down vote













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






                share|improve this answer
























                  up vote
                  2
                  down vote













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






                  share|improve this answer






















                    up vote
                    2
                    down vote










                    up vote
                    2
                    down vote









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






                    share|improve this answer












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







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Sep 1 at 12:26









                    Kode

                    212




                    212




















                        up vote
                        1
                        down vote













                        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(.)+tK([d.]*)' -m 1) www.npmjs.com"


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






                        share|improve this answer
























                          up vote
                          1
                          down vote













                          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(.)+tK([d.]*)' -m 1) www.npmjs.com"


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






                          share|improve this answer






















                            up vote
                            1
                            down vote










                            up vote
                            1
                            down vote









                            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(.)+tK([d.]*)' -m 1) www.npmjs.com"


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






                            share|improve this answer












                            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(.)+tK([d.]*)' -m 1) www.npmjs.com"


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







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Sep 1 at 15:41









                            Or Duan

                            5,47023145




                            5,47023145



























                                 

                                draft saved


                                draft discarded















































                                 


                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function ()
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f52127111%2fwhats-the-reason-for-npm-error-on-firebase-deploy-only-functions%23new-answer', 'question_page');

                                );

                                Post as a guest













































































                                Comments

                                Popular posts from this blog

                                What does second last employer means? [closed]

                                List of Gilmore Girls characters

                                Confectionery