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

3
  • Those are warnings. Not errors. Commented Apr 14, 2018 at 6:28
  • 1
    Can you please add the console logs as text Commented Apr 14, 2018 at 6:29
  • Thanks@SurajRao. There is no console logs. Commented Apr 14, 2018 at 6:30

1 Answer 1

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 [email protected]...

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

Sign up to request clarification or add additional context in comments.

4 Comments

fsevents is only required and used in OSX(darwin) environment.. You will probably always get that warning in windows/linux
Thanks @Tomasz for your reply. How can I avoid that ? Thanks.
@SurajRao Thanks, I've included it in answer.
@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).

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.