Reputation: 7052
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.
Upvotes: 1
Views: 386
Reputation: 36199
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
Upvotes: 5