Angular - npm install fails in installing firebase packages











up vote
0
down vote

favorite












I try to clone angular project on my computer:



1) Clone from VCS



2) hit npm install



3) installation fails



I think this is something related to npm itself so I try to use npm cache clear --force, but no luck!



Package.json File:



{
...
},
"private": true,
"dependencies": {
"@angular/animations": "~7.0.0",
"@angular/common": "~7.0.0",
"@angular/compiler": "~7.0.0",
"@angular/core": "~7.0.0",
"@angular/fire": "^5.1.0",
"@angular/forms": "~7.0.0",
"@angular/http": "~7.0.0",
"@angular/platform-browser": "~7.0.0",
"@angular/platform-browser-dynamic": "~7.0.0",
"@angular/router": "~7.0.0",
"@auth0/angular-jwt": "^2.0.0",
"@fortawesome/fontawesome-free": "^5.4.2",
"@ng-bootstrap/ng-bootstrap": "^3.3.1",
"@types/underscore": "^1.8.9",
"angular-custom-dropdown": "^1.1.1",
"bootstrap": "^4.1.3",
"core-js": "^2.5.4",
"firebase": "^5.5.6",
"ng-sidebar": "^8.0.0",
"ngx-pagination": "^3.2.1",
"ngx-progressbar": "^2.1.1",
"rxjs": "~6.3.3",
"rxjs-compat": "^6.3.3",
"underscore": "^1.9.1",
"zone.js": "~0.8.26"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.10.0",
"@angular/cli": "~7.0.2",
"@angular/compiler-cli": "~7.0.0",
"@angular/language-service": "~7.0.0",
"@types/node": "~8.9.4",
"@types/jasmine": "~2.8.8",
"@types/jasminewd2": "~2.0.3",
"codelyzer": "~4.5.0",
"jasmine-core": "~2.99.1",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~3.0.0",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "~2.0.1",
"karma-jasmine": "~1.1.2",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "~5.4.0",
"ts-node": "~7.0.0",
"tslint": "~5.11.0",
"typescript": "~3.1.1"
}
}


Error Log:



silly fetchPackageMetaData error for @firebase/database@0.3.6 Unexpected end of JSON input while parsing near '..."integrity":"sha512-S' 2318 

silly fetchPackageMetaData error for @firebase/auth@0.7.9 Unexpected end of JSON input while parsing near '...GRvgXjnwabz7MB4HnkyR' 2319


Thank you.










share|improve this question


























    up vote
    0
    down vote

    favorite












    I try to clone angular project on my computer:



    1) Clone from VCS



    2) hit npm install



    3) installation fails



    I think this is something related to npm itself so I try to use npm cache clear --force, but no luck!



    Package.json File:



    {
    ...
    },
    "private": true,
    "dependencies": {
    "@angular/animations": "~7.0.0",
    "@angular/common": "~7.0.0",
    "@angular/compiler": "~7.0.0",
    "@angular/core": "~7.0.0",
    "@angular/fire": "^5.1.0",
    "@angular/forms": "~7.0.0",
    "@angular/http": "~7.0.0",
    "@angular/platform-browser": "~7.0.0",
    "@angular/platform-browser-dynamic": "~7.0.0",
    "@angular/router": "~7.0.0",
    "@auth0/angular-jwt": "^2.0.0",
    "@fortawesome/fontawesome-free": "^5.4.2",
    "@ng-bootstrap/ng-bootstrap": "^3.3.1",
    "@types/underscore": "^1.8.9",
    "angular-custom-dropdown": "^1.1.1",
    "bootstrap": "^4.1.3",
    "core-js": "^2.5.4",
    "firebase": "^5.5.6",
    "ng-sidebar": "^8.0.0",
    "ngx-pagination": "^3.2.1",
    "ngx-progressbar": "^2.1.1",
    "rxjs": "~6.3.3",
    "rxjs-compat": "^6.3.3",
    "underscore": "^1.9.1",
    "zone.js": "~0.8.26"
    },
    "devDependencies": {
    "@angular-devkit/build-angular": "~0.10.0",
    "@angular/cli": "~7.0.2",
    "@angular/compiler-cli": "~7.0.0",
    "@angular/language-service": "~7.0.0",
    "@types/node": "~8.9.4",
    "@types/jasmine": "~2.8.8",
    "@types/jasminewd2": "~2.0.3",
    "codelyzer": "~4.5.0",
    "jasmine-core": "~2.99.1",
    "jasmine-spec-reporter": "~4.2.1",
    "karma": "~3.0.0",
    "karma-chrome-launcher": "~2.2.0",
    "karma-coverage-istanbul-reporter": "~2.0.1",
    "karma-jasmine": "~1.1.2",
    "karma-jasmine-html-reporter": "^0.2.2",
    "protractor": "~5.4.0",
    "ts-node": "~7.0.0",
    "tslint": "~5.11.0",
    "typescript": "~3.1.1"
    }
    }


    Error Log:



    silly fetchPackageMetaData error for @firebase/database@0.3.6 Unexpected end of JSON input while parsing near '..."integrity":"sha512-S' 2318 

    silly fetchPackageMetaData error for @firebase/auth@0.7.9 Unexpected end of JSON input while parsing near '...GRvgXjnwabz7MB4HnkyR' 2319


    Thank you.










    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I try to clone angular project on my computer:



      1) Clone from VCS



      2) hit npm install



      3) installation fails



      I think this is something related to npm itself so I try to use npm cache clear --force, but no luck!



      Package.json File:



      {
      ...
      },
      "private": true,
      "dependencies": {
      "@angular/animations": "~7.0.0",
      "@angular/common": "~7.0.0",
      "@angular/compiler": "~7.0.0",
      "@angular/core": "~7.0.0",
      "@angular/fire": "^5.1.0",
      "@angular/forms": "~7.0.0",
      "@angular/http": "~7.0.0",
      "@angular/platform-browser": "~7.0.0",
      "@angular/platform-browser-dynamic": "~7.0.0",
      "@angular/router": "~7.0.0",
      "@auth0/angular-jwt": "^2.0.0",
      "@fortawesome/fontawesome-free": "^5.4.2",
      "@ng-bootstrap/ng-bootstrap": "^3.3.1",
      "@types/underscore": "^1.8.9",
      "angular-custom-dropdown": "^1.1.1",
      "bootstrap": "^4.1.3",
      "core-js": "^2.5.4",
      "firebase": "^5.5.6",
      "ng-sidebar": "^8.0.0",
      "ngx-pagination": "^3.2.1",
      "ngx-progressbar": "^2.1.1",
      "rxjs": "~6.3.3",
      "rxjs-compat": "^6.3.3",
      "underscore": "^1.9.1",
      "zone.js": "~0.8.26"
      },
      "devDependencies": {
      "@angular-devkit/build-angular": "~0.10.0",
      "@angular/cli": "~7.0.2",
      "@angular/compiler-cli": "~7.0.0",
      "@angular/language-service": "~7.0.0",
      "@types/node": "~8.9.4",
      "@types/jasmine": "~2.8.8",
      "@types/jasminewd2": "~2.0.3",
      "codelyzer": "~4.5.0",
      "jasmine-core": "~2.99.1",
      "jasmine-spec-reporter": "~4.2.1",
      "karma": "~3.0.0",
      "karma-chrome-launcher": "~2.2.0",
      "karma-coverage-istanbul-reporter": "~2.0.1",
      "karma-jasmine": "~1.1.2",
      "karma-jasmine-html-reporter": "^0.2.2",
      "protractor": "~5.4.0",
      "ts-node": "~7.0.0",
      "tslint": "~5.11.0",
      "typescript": "~3.1.1"
      }
      }


      Error Log:



      silly fetchPackageMetaData error for @firebase/database@0.3.6 Unexpected end of JSON input while parsing near '..."integrity":"sha512-S' 2318 

      silly fetchPackageMetaData error for @firebase/auth@0.7.9 Unexpected end of JSON input while parsing near '...GRvgXjnwabz7MB4HnkyR' 2319


      Thank you.










      share|improve this question













      I try to clone angular project on my computer:



      1) Clone from VCS



      2) hit npm install



      3) installation fails



      I think this is something related to npm itself so I try to use npm cache clear --force, but no luck!



      Package.json File:



      {
      ...
      },
      "private": true,
      "dependencies": {
      "@angular/animations": "~7.0.0",
      "@angular/common": "~7.0.0",
      "@angular/compiler": "~7.0.0",
      "@angular/core": "~7.0.0",
      "@angular/fire": "^5.1.0",
      "@angular/forms": "~7.0.0",
      "@angular/http": "~7.0.0",
      "@angular/platform-browser": "~7.0.0",
      "@angular/platform-browser-dynamic": "~7.0.0",
      "@angular/router": "~7.0.0",
      "@auth0/angular-jwt": "^2.0.0",
      "@fortawesome/fontawesome-free": "^5.4.2",
      "@ng-bootstrap/ng-bootstrap": "^3.3.1",
      "@types/underscore": "^1.8.9",
      "angular-custom-dropdown": "^1.1.1",
      "bootstrap": "^4.1.3",
      "core-js": "^2.5.4",
      "firebase": "^5.5.6",
      "ng-sidebar": "^8.0.0",
      "ngx-pagination": "^3.2.1",
      "ngx-progressbar": "^2.1.1",
      "rxjs": "~6.3.3",
      "rxjs-compat": "^6.3.3",
      "underscore": "^1.9.1",
      "zone.js": "~0.8.26"
      },
      "devDependencies": {
      "@angular-devkit/build-angular": "~0.10.0",
      "@angular/cli": "~7.0.2",
      "@angular/compiler-cli": "~7.0.0",
      "@angular/language-service": "~7.0.0",
      "@types/node": "~8.9.4",
      "@types/jasmine": "~2.8.8",
      "@types/jasminewd2": "~2.0.3",
      "codelyzer": "~4.5.0",
      "jasmine-core": "~2.99.1",
      "jasmine-spec-reporter": "~4.2.1",
      "karma": "~3.0.0",
      "karma-chrome-launcher": "~2.2.0",
      "karma-coverage-istanbul-reporter": "~2.0.1",
      "karma-jasmine": "~1.1.2",
      "karma-jasmine-html-reporter": "^0.2.2",
      "protractor": "~5.4.0",
      "ts-node": "~7.0.0",
      "tslint": "~5.11.0",
      "typescript": "~3.1.1"
      }
      }


      Error Log:



      silly fetchPackageMetaData error for @firebase/database@0.3.6 Unexpected end of JSON input while parsing near '..."integrity":"sha512-S' 2318 

      silly fetchPackageMetaData error for @firebase/auth@0.7.9 Unexpected end of JSON input while parsing near '...GRvgXjnwabz7MB4HnkyR' 2319


      Thank you.







      angular firebase npm npm-install






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 11 at 5:16









      Adnan

      172314




      172314
























          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          Remove your package-lock.json and do npm install again. You probably have a bad code merge that's why it is not working






          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: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            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%2f53246040%2fangular-npm-install-fails-in-installing-firebase-packages%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            Remove your package-lock.json and do npm install again. You probably have a bad code merge that's why it is not working






            share|improve this answer

























              up vote
              0
              down vote













              Remove your package-lock.json and do npm install again. You probably have a bad code merge that's why it is not working






              share|improve this answer























                up vote
                0
                down vote










                up vote
                0
                down vote









                Remove your package-lock.json and do npm install again. You probably have a bad code merge that's why it is not working






                share|improve this answer












                Remove your package-lock.json and do npm install again. You probably have a bad code merge that's why it is not working







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 11 at 5:21









                brijmcq

                2,3292926




                2,3292926






























                     

                    draft saved


                    draft discarded



















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53246040%2fangular-npm-install-fails-in-installing-firebase-packages%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Bressuire

                    Vorschmack

                    Quarantine