/ / bowerコンポーネントをインストールする前に状態に戻す - anglejs、bower、restore、bower-install

bowerコンポーネントをインストールする前に状態に戻す - anglejs、bower、restore、bower-install

私はインストールしたばかりです angular-pdf Bowerと一緒に、インストールプロセスで、私に尋ねた

Unable to find a suitable version for angular, please choose one:
1) angular#>=1 <1.3.0 which resolved to 1.2.28 and is required by angular-bootstrap#0.12.0
2) angular#1.3.15 which resolved to 1.3.15 and is required by angular-cookies#1.3.15, angular-pdf#0.4.0
3) angular#>= 1.0.8 which resolved to 1.4.1 and is required by ui-router#0.2.13Prefix the choice with ! to persist it to bower.json

ほとんどの互換性のために最古のバージョンに行くのが最善であると思って、私は3つ一緒に行きました。

しかし、これは問題を引き起こしたようです。まず、Angularを再インストールしたようです。

私のウェブサイトを今すぐ実行すると

TypeError: $browser.addPollFn is not a function
at Object.<anonymous> (angular-cookies.js:60)
at Object.invoke (angular.js:4443)
at Object.enforcedReturnValue [as $get] (angular.js:4296)
at Object.invoke (angular.js:4443)
at angular.js:4261
at getService (angular.js:4402)
at Object.invoke (angular.js:4434)
at Object.enforcedReturnValue [as $get] (angular.js:4296)
at Object.invoke (angular.js:4443)
at angular.js:4261

このBowerインストールを実行する前に、すべてを元に戻す方法はありますか?

ありがとう!

回答:

回答№1は1

あなたの bower.json、使用した角度分解能について述べた部分があります

このようなもの:

"resolutions": {
"angular": ">= 1.0.8"
}

この部分を削除して devDependencies 「角度」バージョンを 1.3.15 最後にターミナルで bower install 私はバージョン1.3.15の角度が効果を発揮すると思います。