1. 程式人生 > >安裝angular cli時出現警告資訊

安裝angular cli時出現警告資訊

C:\Users\Beenle>npm install -g @angular/cli
C:\Users\Beenle\AppData\Roaming\npm\ng -> C:\Users\Beenle\AppData\Roaming\npm\node_modules\@angular\cli\bin\ng
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\@angular\cli\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for

[email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

 

因為fsevent是mac osx系統的可選擇依賴包,如果使用者在win/Linux系統下安裝了這個依賴包,則系統會有警告。

不過Windows系統下的WARN警告,可以直接忽略;或者把該依賴刪掉。