vuejs / vue-cli

πŸ› οΈ webpack-based tooling for Vue.js Development
https://cli.vuejs.org/
MIT License
29.76k stars 6.33k forks source link

Peer Dependency Warning When Installing @vue/cli #2862

Closed astralcai closed 5 years ago

astralcai commented 6 years ago

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 apollo-link-persisted-queries@0.2.1 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-subscriptions@0.5.8 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 graphql-subscriptions@0.5.8 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 graphql-tools@3.1.1 requires a peer of graphql@^0.13.0 but none is installed. You must install peer dependencies yourself.
npm WARN @apollographql/apollo-upload-server@5.0.3 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 apollo-link-persisted-queries@0.2.1
npm ERR! peer dep missing: graphql@^0.13.1, required by @apollographql/apollo-upload-server@5.0.3
npm ERR! peer dep missing: graphql@^0.10.5 || ^0.11.3 || ^0.12.0 || ^0.13.0, required by graphql-subscriptions@0.5.8
npm ERR! peer dep missing: graphql@^0.13.0, required by graphql-tools@3.1.1
npm ERR! peer dep missing: graphql@^0.13.1, required by @apollographql/apollo-upload-server@5.0.3
npm ERR! peer dep missing: graphql@^0.10.5 || ^0.11.3 || ^0.12.0 || ^0.13.0, required by graphql-subscriptions@0.5.8
npm ERR! peer dep missing: graphql@^0.13.0, required by graphql-tools@3.1.1
haoqunjiang commented 6 years ago

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

astralcai commented 6 years ago

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

sirlancelot commented 6 years ago

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

image

narajaon commented 6 years ago

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.

astralcai commented 6 years ago

@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 commented 6 years ago

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

caiqichang commented 6 years ago

+1 os:windows 10 vue/cli version: 3.1.0 qq 20181102175223

rizaldywirawan commented 6 years ago

+1

windows 10

image

Plus i have this error when using vue create:

image

anton-piliugin commented 6 years ago

+1 Also Windows 10

irisida commented 6 years ago

Same on Mac Mojave Latest. carbon

astralcai commented 6 years ago

The issue is still there with latest version 3.1.1

JohnVonNeumann commented 6 years ago

Also encountered this issue, v3.1.1.

JohnVonNeumann commented 6 years ago

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

astralcai commented 6 years ago

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

astralcai commented 6 years ago

Oh I didn't mean to close this

PedroTiagoSimao commented 6 years ago

macOs10.14 Mojave

image

kenmcewan commented 6 years ago

macOs10.14 Mojave

npm update -g

screen 358

npm list -g --depth=0

screen 359

kswr commented 6 years ago

macOs10.14 Mojave, vue-cli 3.1.1

screenshot 2018-11-09 at 15 14 26
colbya commented 6 years ago

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

jrezuke commented 6 years ago

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

irisida commented 6 years ago

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

astralcai commented 6 years ago

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

I just don't like, with vue/cli installed, how every time I do anything with npm -g, even unrelated to vue, the error messages show up and there's nothing I can do about it

irisida commented 6 years ago

It's community driven, it's key competitors are billion dollar businesses.

haoqunjiang commented 6 years ago

Related upstream issues: https://github.com/apollographql/apollo-link-persisted-queries/issues/30 https://github.com/apollographql/apollo-upload-server/pull/4

dengpan0513 commented 5 years ago

macOS Mojave 10.14 @vue/cli 3.13 vue-cli

yirikanjinchanganhua commented 5 years ago

This is @vue/cli's fault????

iLGunners commented 5 years ago
noshu@noshu-dell:~$ npm list -g --depth 0
/home/noshu/.npm-global/lib
β”œβ”€β”€ @angular/cli@6.2.7
β”œβ”€β”€ @vue/cli@3.1.3
β”œβ”€β”€ bower@1.8.4
β”œβ”€β”€ cordova@8.1.2
β”œβ”€β”€ graphql@0.13.2
β”œβ”€β”€ ionic@3.20.1
β”œβ”€β”€ mocha@5.2.0
β”œβ”€β”€ nodemon@1.18.6
└── polymer-cli@1.9.1

npm ERR! peer dep missing: graphql@^0.13.1, required by @apollographql/apollo-upload-server@5.0.3
npm ERR! peer dep missing: graphql@^0.13.1, required by @apollographql/apollo-upload-server@5.0.3
npm ERR! peer dep missing: sinon@^1.4.0 || ^2.1.0 || ^3.0.0 || ^4.0.0, required by sinon-chai@2.14.0
npm ERR! peer dep missing: chai@>=1.9.2 <5, required by sinon-chai@2.14.0
noshu@noshu-dell:~$ npm -v
6.4.1
noshu@noshu-dell:~$ node -v
v8.13.0
arfaWong commented 5 years ago

Same on macOS Mojave 10.14 @vue/cli 3.13 ☹️☹️☹️

nbili commented 5 years ago

the same problem (macos 10.13)

traderd65 commented 5 years ago

Same problem (graphql@^0.13.1) on Debian (Pixelbook)

lao-tseu-is-alive commented 5 years ago

Same problem (graphql@^0.13.1) on Ubuntu 16.04.5 LTS
because of the security vulnerability announced on https://news.vuejs.org/ November 27, 2018 I have done as recommended :

npm uninstall -g @vue/cli
npm install -g @vue/cli 

and now npm list -g --depth=0 gives this

/usr/lib
β”œβ”€β”€ @vue/cli@3.1.3
β”œβ”€β”€ @vue/cli-service-global@3.1.3
└── npm@6.4.1

npm ERR! peer dep missing: graphql@^0.13.1, required by @apollographql/apollo-upload-server@5.0.3
npm ERR! peer dep missing: graphql@^0.13.1, required by @apollographql/apollo-upload-server@5.0.3
npm ERR! peer dep missing: ajv@^5.0.0, required by ajv-keywords@2.1.1`
gandra commented 5 years ago

Same problem on:

npm list -g --depth=0 gives me:

/Users/*********/.npm-global/lib
β”œβ”€β”€ @angular/cli@7.1.0
β”œβ”€β”€ @vue/cli@3.2.1
β”œβ”€β”€ apidoc@0.17.7
β”œβ”€β”€ bower@1.8.4
β”œβ”€β”€ express-generator@4.16.0
β”œβ”€β”€ graphql@0.12.3
β”œβ”€β”€ gulp@3.9.1
β”œβ”€β”€ jest@23.6.0
β”œβ”€β”€ n@2.1.12
β”œβ”€β”€ nodemon@1.18.7
β”œβ”€β”€ npm@6.4.1
β”œβ”€β”€ pm2@2.10.4
β”œβ”€β”€ react-native-cli@2.0.1
β”œβ”€β”€ reaction-cli@0.29.0
β”œβ”€β”€ redis-commander@0.4.5
└── selenium-webdriver@4.0.0-alpha.1

npm ERR! peer dep missing: graphql@^0.13.1, required by @apollographql/apollo-upload-server@5.0.3
npm ERR! peer dep missing: graphql@^0.13.1, required by @apollographql/apollo-upload-server@5.0.3
SquidwardHill commented 5 years ago

Same here-

/Users/**********/.npm-global/lib
β”œβ”€β”€ @vue/cli@3.2.1
β”œβ”€β”€ express-generator@4.16.0
β”œβ”€β”€ graphql@0.13.2
β”œβ”€β”€ nodemon@1.18.7
└── npx@10.2.0

npm ERR! peer dep missing: graphql@^0.13.1, required by @apollographql/apollo-upload-server@5.0.3
npm ERR! peer dep missing: graphql@^0.13.1, required by @apollographql/apollo-upload-server@5.0.3
bearduk commented 5 years ago

Another one here for me folks:

➜  npm list -g --depth=0
/Users/**/.nvm/versions/node/v8.11.3/lib
β”œβ”€β”€ @vue/cli@3.2.1
β”œβ”€β”€ @vue/cli-init@3.2.0
β”œβ”€β”€ @vue/cli-service-global@3.2.1
β”œβ”€β”€ browser-sync@2.26.3
β”œβ”€β”€ eslint@5.9.0
β”œβ”€β”€ gulp@3.9.1
β”œβ”€β”€ gulp-cli@2.0.1
β”œβ”€β”€ npm@6.4.1
β”œβ”€β”€ trash-cli@1.4.0
β”œβ”€β”€ yarn@1.12.3
└── ytdl@0.10.4

npm ERR! peer dep missing: graphql@^0.13.1, required by @apollographql/apollo-upload-server@5.0.3
npm ERR! peer dep missing: graphql@^0.13.1, required by @apollographql/apollo-upload-server@5.0.3
npm ERR! peer dep missing: ajv@^5.0.0, required by ajv-keywords@2.1.1
lawrence615 commented 5 years ago

Same thing here;

npm list -g --depth 0
/usr/local/lib
β”œβ”€β”€ @vue/cli@3.2.1
β”œβ”€β”€ @vue/cli-service-global@3.0.4
β”œβ”€β”€ aglio@2.3.0
β”œβ”€β”€ angular-cli@1.0.0-beta.19-3
β”œβ”€β”€ bower@1.5.3
β”œβ”€β”€ coffee-script@1.10.0
β”œβ”€β”€ cordova@6.0.0
β”œβ”€β”€ eslint@4.14.0
β”œβ”€β”€ firebase-tools@3.9.1
β”œβ”€β”€ grpc@1.13.1
β”œβ”€β”€ grunt-cli@0.1.13
β”œβ”€β”€ gulp@3.9.0
β”œβ”€β”€ gulp-cli@0.4.0 (git://github.com/gulpjs/gulp-cli.git#fa027550b482813bc270c8729680c058efe15c04)
β”œβ”€β”€ ionic@2.1.12
β”œβ”€β”€ laravel-echo-server@1.2.9
β”œβ”€β”€ less@2.6.1
β”œβ”€β”€ n@2.1.12
β”œβ”€β”€ node-gyp@3.7.0
β”œβ”€β”€ node-pre-gyp@0.10.3
β”œβ”€β”€ npm@6.4.1
β”œβ”€β”€ typescript@2.0.9
β”œβ”€β”€ typings@1.3.2
└── update-node@0.1.0

npm ERR! peer dep missing: graphql@^0.13.1, required by @apollographql/apollo-upload-server@5.0.3
npm ERR! peer dep missing: graphql@^0.13.1, required by @apollographql/apollo-upload-server@5.0.3
npm ERR! peer dep missing: @babel/core@^7.0.0, required by babel-loader@8.0.4
ryanaltvater commented 5 years ago
npm list -g --depth=0                                                                                             master * ] 3:23 PM
/usr/local/lib
β”œβ”€β”€ @angular/cli@7.1.2
β”œβ”€β”€ @vue/cli@3.2.1
β”œβ”€β”€ bower@1.8.4
β”œβ”€β”€ cordova@8.1.2
β”œβ”€β”€ csscomb@4.2.0
β”œβ”€β”€ generator-generator@4.0.2
β”œβ”€β”€ generator-liquid@1.4.3 -> /Users/realtvater/Sites/personal/generator-liquid
β”œβ”€β”€ grunt-cli@1.3.2
β”œβ”€β”€ gulp-cli@2.0.1
β”œβ”€β”€ ionic@4.5.0
β”œβ”€β”€ ios-deploy@1.9.4
β”œβ”€β”€ ios-sim@7.0.0
β”œβ”€β”€ npm@6.5.0
β”œβ”€β”€ npm-check@5.9.0
β”œβ”€β”€ typescript@3.2.2
└── yo@2.0.5

npm ERR! peer dep missing: graphql@^0.13.1, required by @apollographql/apollo-upload-server@5.0.3
npm ERR! peer dep missing: graphql@^0.13.1, required by @apollographql/apollo-upload-server@5.0.3
wilsonCernWq commented 5 years ago

Ubuntu 18.04

npm ERR! peer dep missing: graphql@^0.13.1, required by @apollographql/apollo-upload-server@5.0.3 npm ERR! peer dep missing: graphql@^0.13.1, required by @apollographql/apollo-upload-server@5.0.3

codewired commented 5 years ago
screen shot 2018-12-11 at 7 05 27 pm
haoqunjiang commented 5 years ago

apollo-server-express v2.3.0 was released hours ago, which should have fixed this issue.

ratracegrad commented 5 years ago

So what do we need to do to resolve this error message if apollo-server-express was updated? I am still getting the error message.

caiqichang commented 5 years ago

@ratracegrad uninstall the @vue/cli and reinstall it

songxingguo commented 5 years ago

Same problem (graphql@^0.13.1) on Ubuntu 16.04.5 LTS because of the security vulnerability announced on https://news.vuejs.org/ November 27, 2018 I have done as recommended :

npm uninstall -g @vue/cli
npm install -g @vue/cli 

and now npm list -g --depth=0 gives this

/usr/lib
β”œβ”€β”€ @vue/cli@3.1.3
β”œβ”€β”€ @vue/cli-service-global@3.1.3
└── npm@6.4.1

npm ERR! peer dep missing: graphql@^0.13.1, required by @apollographql/apollo-upload-server@5.0.3
npm ERR! peer dep missing: graphql@^0.13.1, required by @apollographql/apollo-upload-server@5.0.3
npm ERR! peer dep missing: ajv@^5.0.0, required by ajv-keywords@2.1.1`

thank you,it's work.

yuyudsgn commented 5 years ago

Same warning on macOs Mojave 10.14.1 I tried to uninstall and reinstall it and it worked for me.

npm uninstall -g @vue/cli
npm install -g @vue/cli

and voila npm list -g --depth=0 shows me

/usr/local/lib
β”œβ”€β”€ @vue/cli@3.2.2
└── npm@6.4.1
Thirstypooch commented 5 years ago

is this still an issue for anyone else, wondering if a clean node/npm installation/downgrade would work? i did uninstalled and installed with npm & yarn and got the same issue, and when i proceeded with vue create despite "peer dep missing msg" i had an error saying there is an issue with npm itself

sirlancelot commented 5 years ago

@Thirstypooch The issue was fixed externally back in mid-December but you are required to uninstall and re-install vue-cli. See the comment directly above your own. If you are still having an issue, please open a new ticket.

ayushme001 commented 5 years ago

try this $export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/YOURUSERNAME/.npm-global/bin"

HOPE it might work!! πŸ™‚

clevermarketing commented 5 years ago

I have many times installed and uninstalled node, npm and vue, but i dont can create a vue project. when i start localhost:8080 i have a vue html page. but i dont can "create" vue project.

vue-install-1

when i search for the vue --version:

vue-installation

haoqunjiang commented 5 years ago

@clevermarketing seems you have a custom npm prefix set. Please add that path to the $PATH environment variable, by adding the following line to ~/.zshrc or ~/.bashrc:

export PATH=$PATH:$(npm bin -g)
clevermarketing commented 5 years ago

@sodatea thank you very much. that was the problem. all working fine now.

que-path-works

clevermarketing commented 5 years ago

i can now create vue project and it works fine when i start localhost:8080 but i dont can "code ." vue project to open and edit the project

macOS Sierra 10.12.6

node -v: 10.15.3

npm -v: 6.4.1

code-not-open-vue