vue-cli icon indicating copy to clipboard operation
vue-cli copied to clipboard

Peer Dependency Warning When Installing @vue/cli

Open astralcai opened this issue 8 years ago • 80 comments

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]

astralcai avatar Oct 31 '18 12:10 astralcai

Are there any errors other than those warning? IMHO these are just warnings and should not affect use of vue cli.

haoqunjiang avatar Oct 31 '18 12:10 haoqunjiang

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

astralcai avatar Oct 31 '18 12:10 astralcai

@vue/cli seems to still be at v3.0.5 on npm. I think that's part of the problem.

image

sirlancelot avatar Oct 31 '18 16:10 sirlancelot

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.

narajaon avatar Oct 31 '18 23:10 narajaon

@vue/cli seems to still be at v3.0.5 on npm. I think that's part of the problem.

image

Actually the version that I installed is also 3.0.5, I don't know why I said 3.1.1 above.

astralcai avatar Nov 01 '18 00:11 astralcai

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

astralcai avatar Nov 01 '18 00:11 astralcai

+1

windows 10

image

Plus i have this error when using vue create:

image

rizaldywirawan avatar Nov 02 '18 16:11 rizaldywirawan

+1 Also Windows 10

anton-piliugin avatar Nov 02 '18 18:11 anton-piliugin

Same on Mac Mojave Latest. carbon

irisida avatar Nov 02 '18 21:11 irisida

The issue is still there with latest version 3.1.1

astralcai avatar Nov 02 '18 23:11 astralcai

Also encountered this issue, v3.1.1.

JohnVonNeumann avatar Nov 03 '18 01:11 JohnVonNeumann

I've just downgraded to vue-cli for the time being, seems to be working fine now.

JohnVonNeumann avatar Nov 03 '18 06:11 JohnVonNeumann

I've just downgraded to vue-cli for the time being, seems to be working fine now.

astralcai avatar Nov 03 '18 06:11 astralcai

Oh I didn't mean to close this

astralcai avatar Nov 03 '18 06:11 astralcai

macOs10.14 Mojave

image

PedroTiagoSimao avatar Nov 04 '18 14:11 PedroTiagoSimao

macOs10.14 Mojave

npm update -g

screen 358

npm list -g --depth=0

screen 359

kenmcewan avatar Nov 04 '18 14:11 kenmcewan

macOs10.14 Mojave, vue-cli 3.1.1

screenshot 2018-11-09 at 15 14 26

kswr avatar Nov 09 '18 14:11 kswr

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

colbya avatar Nov 10 '18 15:11 colbya

This is my first experience with Vue and the cli. Not a good first impression.

jrezuke avatar Nov 10 '18 17:11 jrezuke

^^ dry your eyes young man. Every Great product has hiccups.

irisida avatar Nov 10 '18 22:11 irisida