在項目根目錄下使用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