在项目根目录下使用git bash中使用bower init 来初始化时遇到如下问题:
$ bower init
bower ENOINT Register requires an interactive shell
Additional error details:
Note that you can manually force an interactive shell with --config.interactive
根据网上搜索知道windows下bower初始化时不应该在git bash中,而应该在cmd下打开的dos窗口中进行。
如下:
D:\WWW\MedicalCare>bower init
? name (MedicalCare) MedicalCare
? name MedicalCare
? description 后台管理平台建设
? main file leen.json
? what types of modules does this package expose?
? keywords leen
? authors leen
? license MIT
? homepage
? set currently installed components as dependencies? Yes
? add commonly ignored files to ignore list? Yes
? would you like to mark this package as private which prevents it from being ac? would you like to mark this package as private which prevents it from being accidentally published to the registry? Yes
{
name: 'MedicalCare',
description: '后台管理平台建设',
main: 'leen.json',
authors: [
'leen'
],
license: 'MIT',
keywords: [
'leen'
],
moduleType: [],
homepage: '',
private: true,
ignore: [
'**/.*',
'node_modules',
'bower_components',
'test',
'tests'
]
}
? Looks good? Yes
如图所示:
这是在项目的根目录下就会出现一个bower.json文件。
Author:leedaning
本文地址:http://blog.csdn.net/leedaning/article/details/53125894