New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Peer Dependency Warning When Installing @vue/cli #2862
Comments
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 |
|
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 |
Actually the version that I installed is also 3.0.5, I don't know why I said 3.1.1 above. |
I tried your method, but it still doesn't work |
+1 |
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. |
|
Oh I didn't mean to close this |
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 |
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. |
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 |
It's community driven, it's key competitors are billion dollar businesses. |
@lao-tseu-is-alive because the current warnings are not the same as the original ones, they were not present until recently. The first two warnings are due to vue-virtual-scroller mistakenly listed as |
…-side only This commit fixes a peer dependency warning described here: vuejs#2862 (comment)
…-side only (#3871) This commit fixes a peer dependency warning described here: #2862 (comment)
Found discussions here: https://npm.community/t/crash-npm-err-cb-never-called/858 |
Same here on: Mac OS Mojave 10.14.4
Which also makes the UI not wanting serve the development server! (I tried to add the missing peer dependencies manually but it still errors on graphql and/or typescript) |
OS : Ubuntu 19.04
|
Had similar issue, here was my result previously;
Simply installed @vue/cli,
Possible diagnosis: the issue was fixed somewhere between v.3.1.3 and v.3.8.2 |
Try to install with Yarn. Windows: Mac: This worked for me |
Tried doing
but end up getting this error:
The log file says:
|
run the server using:npm run dev |
Hi, had the same issue. works fine.
|
macos 10.15.6 % npm list -g --depth=0 npm ERR! peer dep missing: vue@3.0.0-rc.10, required by @vue/compiler-sfc@3.0.0-rc.10 |
same as macOS 10.14.6 |
Same problem...
|
Same on Windows 10. Tried to reinstall with npm uninstall and install, still the same error |
This issue is still going on? Can anyone please help with this issue? I don't find any problems working on any other globally installed node modules, but it shows this error every time with npm commands. Any answer would be welcome. |
I've had this problem too. I don't think it's a coincidence. |
Hi all Had the same problem today too, but think I've managed to solve it. Currently running: I'm also using oh-my-zsh in my terminal. I had to do the following having found a previous post. Working directory: /Users/Peggy
https://www.positronx.io/how-to-uninstall-node-js-and-npm-from-macos/
➜ / sudo npm install -g @vue/cli npm WARN @vue/compiler-sfc@3.0.0 requires a peer of vue@3.0.0 but none is installed. You must install peer dependencies yourself.
export PATH=$PATH:/Users/peggy/.npm-packages/bin (AND)
|
For those people who still have this problem. Update your Node version to 15.5.1 & npm version 7.4.0. The problem will fix itself. |
I got the error above too. I fixed this problem by updatng npm to npm@7.4.0. So, My solution is :
Hope this can help you . |
Try either of:
|
This works but fails to work on node version 15.8.0 with npm 7.3.0 . Its just weird. |
Also broken for node 15.8.0 with npm 7.5.0
works... it's a little frustrating this seemingly happens at random when updating your toolchain... |
It basically says I should have permission to do this, so it requires to be superuser. I just tried to install with following on Ubuntu and solved my problem;
|
My issue is that I was in a child-directory. It can be easy to forget that you need to be in the same directory as the package.json file. Not saying this is necessarily the issue here, but leaving for others. |
Hello i got the same error when the first time I installed vue/cli and this is my solution nano ~/.zshrc Hope it can solve your problem. |
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?
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
The text was updated successfully, but these errors were encountered: