安装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警告,可以直接忽略;或者把该依赖删掉。

猜你喜欢

转载自blog.csdn.net/beenle_m/article/details/84102150