2017-04-15 12 views
0

私はangle2パッケージに興味があります。 私は@ angular/common @ 4.0.2を実行しています。角度4の角度2パッケージはどのように使用できますか?

私はそれをインストールしようとすると、これは私が持っているメッセージです:私は2

に私の角度をダウングレードする可能性がしかし、私は角度2と4またはAngular.ioまたは角度を考え

peerinvalid Peer [email protected] wants @angular/[email protected]^2.0.0 

要するに、すべて互換性があり、同じアーキテクチャだったのだろうか?

この角度2の互換パッケージを4と使用するにはどうすればよいですか?

+4

あなたは、NPMを無視して試してみましたが、ちょうどそれが行くを与えますか? – jonrsharpe

+0

私はまだnpmをバイパスしませんでした。どのようにnpmを無視しますか? –

+3

あなたはただそれを無視します。あなたはそれを "バイパス"する必要はありません、ちょうど通知をせずにソフトウェアを書き留めてください。 – jonrsharpe

答えて

0

Angularの依存関係を最新のバージョンに更新し、アニメーションが必要かどうかを2回確認するのは簡単です。これはほとんどのユースケースで機能します。 Linux/Macの

:Windowsでは

npm install @angular/{common,compiler,compiler-cli,core,forms,http,platform-browser,platform-browser-dynamic,platform-server,router,animations}@latest [email protected] --save 

npm install @angular/[email protected] @angular/[email protected] @angular/[email protected] @angular/[email protected] @angular/[email protected] @angular/[email protected] @angular/[email protected] @angular/[email protected] @angular/[email protected] @angular/[email protected] @angular/[email protected] [email protected] --save 
関連する問題