I'm currently trying to generate a prisma.graphql file from my .graphqlconfig.yml, but I can't install globally npm i -g graphql-binding or npm i -g prisma-binding as I'm getting the following errors:
npm WARN graphql-binding#2.2.6 requires a peer of graphql#^0.11.0 || ^0.12.0 || ^0.13.0 but none is installed. You must install peer dependencies yourself.
npm WARN graphql-import#0.5.3 requires a peer of graphql#^0.11.0 || ^0.12.0 || ^0.13.0 but none is installed. You must install peer dependencies yourself.
npm WARN graphql-tools#3.1.0 requires a peer of graphql#^0.13.0 but none is installed. You must installpeer dependencies yourself.
npm WARN apollo-link#1.2.3 requires a peer of graphql#^0.11.3 || ^0.12.3 || ^0.13.0 || ^14.0.0 but noneis installed. You must install peer dependencies yourself.
So I obviously installed graphql at a ^0.13 version with:
npm i -g graphql#0.13
This runs successfully, but the graphql bindings keep failing to install.
The command I need to run is:
graphql codegen
But without installing the bindings I'm not able to run it.
Any suggestion on how to solve this is welcome :)
EDIT
Using npx I managed to run
npx graphql codegen
Related
Trying to install dependencies below
npm install axios moment react-file-base64 redux redux-thunk
Having these warn issues
npm WARN #apideck/better-ajv-errors#0.3.2 requires a peer of ajv#>=8 but none is installed. You must install peer dependencies yourself.
npm WARN fork-ts-checker-webpack-plugin#6.5.0 requires a peer of typescript#>= 2.7 but none is installed. You must install peer dependencies yourself.
npm WARN react-file-base64#1.0.3 requires a peer of react#^15.0.2 but none is installed. You must install peer dependencies yourself.
npm WARN tsutils#3.21.0 requires a peer of typescript#>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta but none is installed. You must install peer dependencies yourself.
How can I fix it?
Those are peer dependencies, not actual dependencies. Here is a good article explaining the difference. Peer dependencies are just to let users know what versions of various packages your installed package is compatible with. You don't need to fix these issues, as they are just letting you know which versions of various packages are compatible IF you want to use those packages sometime in the future.
In short, you can just start you project as-is, there is nothing that needs fixing.
Newer versions of npm do not install peer dependencies automatically.
To get rid of your warnings, you can install the packages that are being requested as needed.
npm install --save-dev "<dependency_pkg>"
The --save-dev means that it will be saved to devDependencies
You can find much more details in the various answers on this similar question: npm WARN ... requires a peer of ... but none is installed. You must install peer dependencies yourself
npm audit
=== npm audit security report ===
Manual Review
Some vulnerabilities require your attention to resolve
Visit https://go.npm.me/audit-guide for additional guidance
Moderate Prototype Pollution
Package hoek
Patched in > 4.2.0 < 5.0.0 || >= 5.0.3
Dependency of otp.js [dev]
Path otp.js > joi > hoek
More info https://nodesecurity.io/advisories/566
Low Denial of Service
Package mem
Patched in >=4.0.0
Dependency of react-native
Path react-native > #react-native-community/cli > metro >
metro-inspector-proxy > yargs > os-locale > mem
More info https://nodesecurity.io/advisories/1084
.......
npm audit fix --force
Error:
npm WARN using --force I sure hope you know what you are doing.
npm WARN commonmark-react-renderer#4.3.4 requires a peer of commonmark#^0.27.0 || ^0.26.0 || ^0.24.0 but none is installed. You must install peer dependencies yourself.
npm WARN eslint-config-airbnb#17.1.1 requires a peer of eslint#^4.19.1 || ^5.3.0 but none is installed. You must install peer dependencies yourself.
npm WARN eslint-config-airbnb-base#13.2.0 requires a peer of eslint#^4.19.1 || ^5.3.0 but none is installed. You must install peer dependencies yourself.
npm WARN eslint-plugin-react-native#3.7.0 requires a peer of eslint#^3.17.0 || ^4 || ^5 but none is installed. You must install peer dependencies yourself.
npm WARN jsdom#15.2.1 requires a peer of canvas#^2.5.0 but none is installed. You must install peer dependencies yourself.
npm WARN ws#7.2.3 requires a peer of bufferutil#^4.0.1 but none is installed. You must install peer dependencies yourself.
npm WARN ws#7.2.3 requires a peer of utf-8-validate#^5.0.2 but none is installed. You must install peer dependencies yourself.
npm WARN react-native-fast-image#7.0.2 requires a peer of react-native#^0.60.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-native-keyboard-input#5.4.1 requires a peer of react-native#^0.57.3 but none is installed. You must install peer dependencies yourself.
npm WARN react-native-responsive-ui#1.1.1 requires a peer of react#16.0.0-alpha.6 but none is installed. You must install peer dependencies yourself.
npm WARN react-native-responsive-ui#1.1.1 requires a peer of react-native#^0.43.4 but none is installed. You must install peer dependencies yourself.
npm WARN react-navigation-drawer#1.4.0 requires a peer of react-native-screens#^1.0.0 || ^1.0.0-alpha but none is installed. You must install peer dependencies yourself.
npm WARN react-navigation-stack#1.10.3 requires a peer of react-native-screens#^1.0.0 || ^1.0.0-alpha but none is installed. You must install peer dependencies yourself
>
>
up to date in 20.457s
fixed 0 of 6 vulnerabilities in 1710074 scanned packages
6 vulnerabilities required manual review and could not be updated
anyone could help plz????
problem was with 'npm install' and 'npm yarn install'
This helped me
'choco install yarn'
'cd project_folder'
'yarn global add react-native-cli'
'yarn'
In following a tutorial, I ran the following command to install eslint airbnb and a few dependencies
$ sudo npm install -g eslint-config-airbnb eslint-plugin-import eslint-plugin-react eslint-plugin-jsx-a11y
Upon completion I received a number of warnings
npm WARN eslint-plugin-react#7.6.0 requires a peer of eslint#^3.0.0 || ^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN eslint-plugin-import#2.8.0 requires a peer of eslint#2.x - 4.x but none is installed. You must install peer dependencies yourself.
npm WARN eslint-configeslint-config-airbnb-airbnb#16.1.0 requires a peer of eslint#^4.9.0 but none is installed. You must install peer dependencies yourself.
npm WARN eslint-config-airbnb-base#12.1.0 requires a peer of eslint#^4.9.0 but none is installed. You must install peer dependencies yourself.
npm WARN eslint-plugin-jsx-a11y#6.0.3 requires a peer of eslint#^3 || ^4 but none is installed. You must install peer dependencies yourself.
Ok, so.... I'm beginning to think the tutorial is outdated and something has changed. What (if anything) am I missing?
Please advise.
Each node package has dependencies it works perfectly or has been tested with hence the warning you get since they are the ones that are recommended or declared in the packages configs . Hence the warnings. It is recommended to follow the required packages to avoid errors, but most of the time unless you get an error then you should be good to go as the the alluded to package itself at whatever version exists.
In your case confirm you have eslint in you package.json, if not run:
npm install eslint --save-dev
All the warning are about peer dependencies. They are categorised as WARN instead of ERROR, because if your application code never touch such a dependency, you will be good. Fully tested code can ensure that these warnings can be safely ignored.
Excellent explanation to peer dependency
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
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.