1

I am new in react.js. I am trying to install react.js. In this regard I run npm install -g create-react-app and create-react-app my-app. Then I tried to run npm install command. But I am getting below error.

enter image description here

abu abu
  • 6,599
  • 19
  • 74
  • 131

1 Answers1

5

Actually, these are warnings (not errors) coming from libraries.

ajv-keywords... requires ajv...

this is a bug and was fixed 3 days ago.

SKIPPING OPTIONAL DEPENDENCY fsevents@1.1.3...

for some reason NPM decided to skip it. However as documentation points out for optionalDependencies:

The difference is that build failures do not cause installation to fail.

.

SKIPPING OPTIONAL DEPENDENCY: Unsupported platform fsevent...

same as above. There's also stackoverflow answer explaining it here.

The last message of NPM is:

up to date in 16.148s.

Which means everything is fine and installed properly.

EDIT:

as pointed out in a comment by @Suraj Rao

fsevents is only required and used in OSX(darwin) environment.. You will probably always get that warning in windows/linux

Tomasz Mularczyk
  • 34,501
  • 19
  • 112
  • 166
  • 2
    fsevents is only required and used in OSX(darwin) environment.. You will probably always get that warning in windows/linux – Suraj Rao Apr 14 '18 at 06:34
  • Thanks @Tomasz for your reply. How can I avoid that ? Thanks. – abu abu Apr 14 '18 at 06:37
  • @SurajRao Thanks, I've included it in answer. – Tomasz Mularczyk Apr 14 '18 at 06:38
  • 1
    @abuabu you can't avoid that. The first warning will probably dissappear when new version of `ajv` will be released, and rest will always appear for windows/linux unless libraries change. Just don't worry about it (but it is confusing I admit). – Tomasz Mularczyk Apr 14 '18 at 06:40