Peer Dependency Warning When Installing @vue/cli
Version
3.1.1
Node and OS info
npm 6.4.1
Steps to reproduce
npm install -g @vue/cli
What is expected?
Install Successful
What is actually happening?
npm WARN [email protected] 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 [email protected] requires a peer of graphql@^0.10.5 || ^0.11.3 || ^0.12.0 || ^0.13.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of graphql@^0.10.5 || ^0.11.3 || ^0.12.0 || ^0.13.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of graphql@^0.13.0 but none is installed. You must install peer dependencies yourself.
npm WARN @apollographql/[email protected] requires a peer of graphql@^0.13.1 but none is installed. You must install peer dependencies yourself.
Even after I manually install graphql with npm install -g graphql@^0.13.1, when I do npm -g list --depth=0, npm still warns
npm ERR! peer dep missing: graphql@^0.11.0 || ^0.12.0 || ^0.13.0, required by [email protected]
npm ERR! peer dep missing: graphql@^0.13.1, required by @apollographql/[email protected]
npm ERR! peer dep missing: graphql@^0.10.5 || ^0.11.3 || ^0.12.0 || ^0.13.0, required by [email protected]
npm ERR! peer dep missing: graphql@^0.13.0, required by [email protected]
npm ERR! peer dep missing: graphql@^0.13.1, required by @apollographql/[email protected]
npm ERR! peer dep missing: graphql@^0.10.5 || ^0.11.3 || ^0.12.0 || ^0.13.0, required by [email protected]
npm ERR! peer dep missing: graphql@^0.13.0, required by [email protected]
Are there any errors other than those warning? IMHO these are just warnings and should not affect use of vue cli.
That I'm not sure. They do show up as errors when I try to take a look at all my global packages by doing
npm list -g --depth=0
Hi, I had the exact same warnings. My issue was that my /usr/local/lib/node_modules didn't have the right permissions.
I tried chmod 777 /usr/local/lib/node_modules, installed the dependencies again and it worked for me. Hope it helped.
@vue/cliseems to still be at v3.0.5 on npm. I think that's part of the problem.
Actually the version that I installed is also 3.0.5, I don't know why I said 3.1.1 above.
Hi, I had the exact same warnings. My issue was that my /usr/local/lib/node_modules didn't have the right permissions.
I tried
chmod 777 /usr/local/lib/node_modules, installed the dependencies again and it worked for me. Hope it helped.
I tried your method, but it still doesn't work
+1
windows 10

Plus i have this error when using vue create:

+1 Also Windows 10
Same on Mac Mojave Latest.

The issue is still there with latest version 3.1.1
Also encountered this issue, v3.1.1.
I've just downgraded to vue-cli for the time being, seems to be working fine now.
I've just downgraded to vue-cli for the time being, seems to be working fine now.
Oh I didn't mean to close this
macOs10.14 Mojave

macOs10.14 Mojave
npm update -g

npm list -g --depth=0

macOs10.14 Mojave, vue-cli 3.1.1

Is there any work around for this issue?
On a workstation with no npm cache vue-cli cannot be installed. I am trying to do something as simple as this but am blocked by this issue:
npm install -g @vue/cli npm install vue ui
This is my first experience with Vue and the cli. Not a good first impression.
^^ dry your eyes young man. Every Great product has hiccups.
