Bower install 显示提示输入消息 debian [英] Bower install display prompt input message debian
问题描述
我在尝试对我的项目执行凉亭安装时遇到问题
I am getting a problem trying to execute a bower install on my project
我只是在我的 debian 操作系统上执行 bower install 命令但是当这是识别在我的 bower.json 上定义的依赖项时.
I am just executing bower install command on my debian OS but when this is recognizing the dependencies defined on my bower.json.
它卡在我不理解的部分
这是我在命令行中看到的最后一部分
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"
然后在dislpaying之后出现
then there after dislpaying the
{
"type": "input",
"message": "Answer",
"name": "prompt",
"level": "prompt"
由于某种原因,它卡在了那里.
it got stuck there for some reason.
这是我的 bower.json
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": {}
}
推荐答案
我在使用 Angular 样板文件时遇到了同样的问题 ngbp.
I experienced the same issue using the Angular boilerplate ngbp.
我通过从 .bowerrc
文件中删除以下行解决了这个问题:
I solved the issue by removing the following line from my .bowerrc
file:
"json": "bower.json"
或者,请参阅@NikolaB 的答案.这涉及将 resolutions
添加到您的 bower.json
而不是删除此行.
Alternatively, see the answer below by @NikolaB. which involves adding resolutions
to your bower.json
instead of removing this line.
这篇关于Bower install 显示提示输入消息 debian的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!