bower ENOINT Register requires an interactive shell

来源:互联网 发布:兄弟打印机ocr软件 编辑:程序博客网 时间:2024/06/07 20:41

在项目根目录下使用git bash中使用bower init 来初始化时遇到如下问题:

$ bower initbower ENOINT        Register requires an interactive shellAdditional 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

0 0