React-native does not install with npm - node.js

When I run on my terminal the following command: npm install react-native I got this error.
npm WARN ajv-keywords#3.1.0 requires a peer of ajv#^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-native#0.55.4 requires a peer of react#16.3.1 but none is installed. You must install peer dependencies yourself.
npm WARN abdu#1.0.0 No description
npm WARN abdu#1.0.0 No repository field.
+ react-native#0.55.4
updated 1 package in 22.645s
Can someone tell me please, how to fix this Issues? or what does mean?
Thanks a lot.

If you start a project from scratch I recommend you to use create-native-app from the official react-native doc : https://facebook.github.io/react-native/docs/getting-started.html
npm install -g create-react-native-app
Then run the following commands to create a new React Native project called "AwesomeProject":
create-react-native-app AwesomeProject
cd AwesomeProject
npm start
otherwise you should simply install missing peer dependancies
npm i -S install ajv react#16.3.1

Related

Warn when install Angular cli via npm in global scope

I’m using 9.6.1 version of node, it goes with 5.6.0 version of npm.
I’m trying to install Angular with follow command:
$ npm i --no-optional -g #angular/cli
But is returned the follow message: npm WARN sass-loader#6.0.6 requires a peer of node-sass#^4.0.0 but none is installed. You must install peer dependencies yourself.
I have installing node-sass like this:
$ npm i --no-optional -g node-sass#^4.0.0
And it installs well.
So I run $ npm i --no-optional -g #angular/cli again, but the warning continues.
If I installing without -g flag, everything happens well, but I need to install globally to use ng command.

Can't npm install googleapis

node version: 8.9.3
npm version: 5.5.1
When I try to execute npm install googleapis I'm getting this result:
npm WARN eslint-config-standard#6.2.1 requires a peer of
eslint#>=3.8.1 but none is installed. You must install peer
dependencies yourself. npm WARN eslint-config-standard#6.2.1 requires
a peer of eslint-plugin-promise#>=3.3.0 but none is installed. You
must install peer dependencies yourself. npm WARN
eslint-config-standard#6.2.1 requires a peer of
eslint-plugin-standard#>=2.0.0 but none is installed. You must install
peer dependencies yourself.
npm ERR! Cannot read property '0' of undefined
What can I do? google apis package is not adding to the node_modules folder
I'm on windows 10

strange error 'npm WARN express-validation#1.0.2 requires a peer of joi#* but none is installed...?

What does 'npm WARN express-validation#1.0.2 requires a peer of joi#* but none is installed. You must install peer dependencies yourself.' mean? And how can I solve it?
when i run:
npm install express-validation --save
I get:
npm WARN express-validation#1.0.2 requires a peer of joi#* but none is installed. You must install peer dependencies yourself.
so then i run:
npm install -g npm-install-peers
then:
npm-install-peers
then I get:
This package doesn't seem to have any peerDependencies
so then i run:
npm install express-validation --save
I get:
npm WARN express-validation#1.0.2 requires a peer of joi#* but none is installed. You must install peer dependencies yourself.
You can install it yourself with npm install joi --save
The package name is wrong. If you are trying to validate data in your app you should consider start looking for express-validator.
Express-validation requires a peer of joy and i dont know what both means.

Unmet dependency error when trying to install react-native-cli using npm

When I run
npm install -g react-native-cli
I see this error
npm WARN unmet dependency /usr/local/lib/node_modules/npm/node_modules/read-installed/node_modules/readdir-scoped-modules requires graceful-fs#'^4.1.2' but will load
npm WARN unmet dependency /usr/local/lib/node_modules/npm/node_modules/read-installed/node_modules/graceful-fs,
npm WARN unmet dependency which is version 3.0.8
I've tried updating graceful-fs by
npm update -g graceful-fs
Reacts website suggests using sudo if you have a permission error. This error doesn't seem permission related but if it is, I can certainly run sudo.
I'm an npm and node noob so please ask for any more info that will help.
I ran npm update -g and then was able to install the React CLI.

Unable to install watchify package

I am trying to install watchify package via npm but I am failing. After a little while the command just stops its execution. Any idea on how to fix this issue? Thx
npm install --save watchify#2.4.0
npm WARN package.json thumbnail-gulp#1.0.0 No description
npm WARN package.json thumbnail-gulp#1.0.0 No repository field.
npm WARN package.json thumbnail-gulp#1.0.0 No README data
> fsevents#0.3.8 install /Users/sandropalmieri/Documents/mycode/reactjs/thumbnail-gulp/node_modules/watchify/node_modules/chokidar/node_modules/fsevents
> node-gyp rebuild

Resources