node.jsnpmdebianbowerbower-install

Bower install display prompt input message debian


I am getting a problem trying to execute a bower install on my project

I am just executing bower install command on my debian OS but when this is recognizing the dependencies defined on my bower.json.

its got stuck in a part that I dont understand

this is the last part that i see in my command line

 "dependencies": {
          "angular": {
            "endpoint": {
              "name": "angular",
              "source": "angular",
              "target": "^1.0.8"
            },
            "canonicalDir": "/home/ricco/.cache/bower/packages/060a9fe0e60a0d3d6c9ed350cde03e61/1.5.4",
            "pkgMeta": {
              "name": "angular",
              "version": "1.5.4",
              "license": "MIT",
              "main": "./angular.js",
              "ignore": [],
              "dependencies": {},
              "homepage": "https://github.com/angular/bower-angular",
              "_release": "1.5.4",
              "_resolution": {
                "type": "version",
                "tag": "v1.5.4",
                "commit": "b972d5aa130bef5c4d931f22bd11627207ea35ca"
              },
              "_source": "https://github.com/angular/bower-angular.git",
              "_target": ">=1"
            },
            "dependencies": {},
            "nrDependants": 1
          }
        },
        "nrDependants": 1
       }
     ]
    }
   ]
  }
}, {
  "type": "input",
  "message": "Answer",
  "name": "prompt",
  "level": "prompt"

then there after dislpaying the

{
  "type": "input",
  "message": "Answer",
  "name": "prompt",
  "level": "prompt"

it got stuck there for some reason.

This is my bower.json

{
  "name": "ng-boilerplate",
  "version": "0.3.2",
  "devDependencies": {
    "angular": "~1.2",
    "angular-mocks": "~1.2",
    "bootstrap": "~3.1",
    "angular-bootstrap": "~0.10.0",
    "angular-ui-router": "~0.2",
    "angular-route":"1.5.3",
    "angular-resource":"1.5.3"
  },
  "dependencies": {}
}

Solution

  • I experienced the same issue using the Angular boilerplate ngbp.

    I solved the issue by removing the following line from my .bowerrc file:

    "json": "bower.json"


    Alternatively, see the answer below by @NikolaB. which involves adding resolutions to your bower.json instead of removing this line.