Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected]

I'm trying to install Angular using the Angular CLI but I'm getting an error when I try to run this command.

Command

npm install -g @angular/cli

Error:

C:\Users\abc>npm install -g @angular/cli
C:\Users\abc\AppData\Roaming\npm\ng -> C:\Users\abc\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"})

+ @angular/[email protected]
updated 1 package in 102.686s

Node Version v10.15.3

like image 541
Muhammad Rashid Avatar asked Dec 23 '22 00:12

Muhammad Rashid


1 Answers

This is a warning not an error, and it's because you're on Windows. FSevents only works on Mac so it's not needed on Windows and that's why it's SKIPPING OPTIONAL DEPENDENCY.

And no as of right now there is no way to get rid of that being printed into the console so just ignore it given the fact that it's not doing anything anyways rather it's just being a bit verbose and telling you that it's not being used.

like image 123
Daniel Turcich Avatar answered Jan 13 '23 22:01

Daniel Turcich