0
votes

while installing materialize-css in my angular CLI project I got this message in the terminal:

UNMET PEER DEPENDENCY [email protected] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) npm WARN [email protected] requires a peer of materialize-css@^0.97.8 but none was installed. npm ERR! code 1

what does that mean?

1
Do you have [email protected] installed?Michael Coker

1 Answers

0
votes
  1. Delete the node_modules of your app and clear the npm cache.
  2. Goto package.json file and remove the materialize-css and angular2-materialize.
  3. Then use the following commands

    npm install materialize-css@latest --save -g 
    npm install angular2-materialize@latest --save -g 
    

You will still get the peer dependency on fsevents but not to worry on it.