2016-03-24 3 views
0

次のプロンプトで中断した別のパッケージをインストールしようとしましたが、使用するバージョンを尋ねました。 CTRL + Cを使用して強制停止するのではなく、インストールをスキップする適切な方法はありますか? ありがとうございます。角度分解能バージョンを求めるプロンプトをスキップ/終了する方法

Unable to find a suitable version for angular, please choose one: 
    1) angular#1.4.9 which resolved to 1.4.9 and is required by angular-mocks#1.4.9 
    2) angular#>=1.2.26 <1.6 which resolved to 1.5.0 and is required by angular-translate#2.9.2, angular-translate#2.11.0, angular-translate#2.11.0 
    3) angular#1.5.0 which resolved to 1.5.0 and is required by angular-cookies#1.5.0 
    4) angular#^1.2.9 which resolved to 1.5.0 and is required by angular-loading-bar#0.9.0 
    5) angular#>=1.4.0 which resolved to 1.5.0 and is required by angular-bootstrap#1.2.5 
    6) angular#1.5.2 which resolved to 1.5.2 and is required by angular-mocks#1.5.2 
    7) angular#^1.0.8 which resolved to 1.5.2 and is required by angular-ui-router#0.2.18 
    8) angular#~1.5.2 which resolved to 1.5.2 and is required by angular-seed 
    9) angular#>=1.3.x which resolved to 1.5.2 and is required by satellizer#0.14.0 

Prefix the choice with ! to persist it to bower.json 

答えて

0

bower helpインストールbower install --force-latestはおそらくエラーなしのための最善の策

あるかもしれないしてみてください...あなたの友達です:

-q, --quiet    Only output important information 
-s, --silent   Do not output anything, besides errors 
+0

@Dr Jonesにお返事ありがとうございますが、私はそのインストールを続行したくないので、--force-latestの質問もなく、インストールに失敗して終了する必要があります。 – Tushar

+0

たぶん試してみます:-q、--quiet重要な情報または/および-sを出力します。--silentエラー以外に何も出力しません。 –

+0

しかし、これらのオプションは、プロンプトを表示せずに終了するのではなく、スキップまたは終了しません。私が必要とするのは、そのようなことが起こった場合、そのインストールをスキップまたは終了することです。 – Tushar

0

をあなたの依存関係のための解像度を提供する必要があります。

{ 
     "name": "myapp", 
     "version": "0.0.1", 
     "dependencies": { 
     "angular": "~1.3.x" 
      }, 
     "resolutions": { 
     "angular": "~1.3.x" 
     } 
    } 

これは、bowerにインストールされたverシオン