0
npm install --save angular2-datatable
和
sudo npm i --save lodash
,但這個錯誤安裝angular2-datatable
和loadash
[email protected] /Users/.../Desktop/reporter-ui
├── UNMET PEER DEPENDENCY @angular/[email protected]
├── UNMET PEER DEPENDENCY @angular/[email protected]
├── UNMET PEER DEPENDENCY @angular/[email protected]
└── [email protected]
npm WARN [email protected] requires a peer of @angular/[email protected]^2.0.0 but none was installed.
npm WARN [email protected] requires a peer of @angular/[email protected]^2.0.0 but none was installed.
npm WARN [email protected] requires a peer of @angular/[email protected]^2.0.0 but none was installed.
出現了兩次。我如何更新這些依賴關係?如果我做一個ng --version
angular-cli: 1.0.0-beta.28.3
node: 7.10.0
os: darwin x64
@angular/animations: 4.2.3
@angular/common: 4.2.3
@angular/compiler: 4.2.3
@angular/core: 4.2.3
@angular/forms: 4.2.3
@angular/http: 4.2.3
@angular/material: 2.0.0-beta.6
@angular/platform-browser: 4.2.3
@angular/platform-browser-dynamic: 4.2.3
@angular/router: 4.2.3
@angular/cli: 1.1.0
@angular/compiler-cli: 4.2.3
@angular/language-service: 4.2.3
,我曾嘗試手動更改版本爲正確的人在我package.json
但我仍然得到錯誤。在我看來,安裝了正確的版本,但我該如何告訴角度cli和or npm?另外,我試過升級npm和角度cli仍然是一樣的錯誤。
那些看起來更像是可以忽略的警告。您的代碼是否在後續運行?如果是,那麼繼續。 –
我在我的反應版本中有這樣的錯誤。他們不會干涉我的構建,而且現在似乎無關緊要。 – Ozan
您需要忽略這些警告。這不會影響你的編碼。所以,更進一步。 –