0

I tried to install angular-cli, but I found this warn:

unsupported platform for fsevents@1.1.1: wanted"(OS windows 10).

I am beginner in Angular, so I am expecting simple solution to solve this.

Error message screenshot: Error message

Tot Zam
  • 8,406
  • 10
  • 51
  • 76
RAHEEZ PC
  • 21
  • 1
  • 7
  • 6
    `fsevents` is ***optional***, and is only available on MacOS. It's perfectly safe to ignore this warning. – Claies May 17 '17 at 04:22
  • sometimes it can cause errors... if anyone runs into this, can refer to this question: https://stackoverflow.com/questions/48898312/npm-error-unsupported-platform-for-fsevents-when-deploying-to-azure – John Smith Jun 07 '18 at 02:28

2 Answers2

2

Create an optionalDependencies in package.json instead of devDependencies:

"optionalDependencies": {
    "fsevents": "*"
}
0

This is just a Warning, so no need to take any further action. Go ahead and run your code.

Tot Zam
  • 8,406
  • 10
  • 51
  • 76
Suneet Bansal
  • 2,664
  • 1
  • 14
  • 18