私は Windows 10 で、Node 5.6.0 と npm 3.6.0 を使用しています。作業フォルダーに angular-material と mdi をインストールしようとしています。npm install angular-material mdiで次のエラーが発生します:
+-- [email protected]
+-- UNMET PEER DEPENDENCY angular-animate@^1.5.0
+-- UNMET PEER DEPENDENCY angular-aria@^1.5.0
+-- [email protected]
+-- UNMET PEER DEPENDENCY angular-messages@^1.5.0 `-- [email protected]
npm WARN enoent ENOENT: no such file or directory, open
'C:\Users\xxxxx\Desktop\ngClassifieds\package.json'
npm WARN [email protected] requires a peer of
angular-animate@^1.5.0 but none was installed.
npm WARN [email protected] requires a peer of angular-aria@^1.5.0
but none was installed.
npm WARN [email protected] requires a peer of
angular-messages@^1.5.0 but none was installed.
AngularJS Material と MDI をインストールするには、どうすればこの問題を解決できますか?
ベストアンサー1
npm はピア依存関係をインストールしなくなったため、手動でインストールする必要があります。npm install
必要な依存関係に対して を実行し、メインの依存関係を再度インストールしてください。
コメントへの返信:
そのメッセージには、どの依存関係が欠けているかが書かれています
UNMET PEER DEPENDENCY angular-animate@^1.5.0 +--
UNMET PEER DEPENDENCY angular-aria@^1.5.0 +-- [email protected] +
UNMET PEER DEPENDENCY angular-messages@^1.5.0 `-- [email protected]`
だから、npm install angular angular-animate angular-aria angular-material angular-messages mdi