angular中安裝ng-alain 外掛
阿新 • • 發佈:2018-12-25
ng-alain官方給的安裝如下:
ng new demo --style less
cd demo
ng add ng-alain
ng serve
但是ng add報錯。 最終還是按照npm來安裝的
λ npm install ng-alain --save npm WARN [email protected] requires a peer of @angular-devkit/[email protected]^0.6.1 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of @angular-devkit/[email protected]^0.6.1 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of @schematics/[email protected]^0.6.1 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
+ [email protected]
added 1 package in 18.948s
但是ng add報錯。 最終還是按照npm來安裝的
λ npm install ng-alain --save npm WARN [email protected] requires a peer of @angular-devkit/[email protected]^0.6.1 but none is installed. You must install peer dependencies yourself.
+