@vue/cli fails to install using both npm and yarn
Version
3.0.0
Node and OS info
node 10.8, npm 6.2, yarn 1.9.4
Steps to reproduce
npm install -g @vue/cli
..or..
yarn global add @vue/cli
What is expected?
vue cli installs.
What is actually happening?
I get an error. In yarn:
"error Package "apollo-server-core" refers to a non-existing file '"/Users/ollie/.config/yarn/apollo-server-core"'."
In npm :
code ENOLOCAL npm ERR! Could not install from "../../usr/local/lib/node_modules/@vue/cli/node_modules/apollo-server-core" as it does not contain a package.json file.
I'm on Mac, 10.12.6
Fixed with version 2.0.2 (https://github.com/apollographql/apollo-server/issues/1530)
The problem is apollo-server-express. I manually downgraded the apollo-server-core core to 2.0.0 and it works.
cd YOUR_PATH/@vue/cli/node_modules/apollo-server-express
inside package.json change "apollo-server-core": "..." to "apollo-server-core": "2.0.0"
npm update --save
This is only a small work around and apollo-server-express or apollo-server-core should update their packages.
Fixed with apollo-server-express 2.0.2. Try remove and add @vue/cli again.
not work

Works for me now.
I have this same problem. Not sure where it's coming from. Fails to install with both npm and yarn.
Install the failed packages manually, then rerun the installation of @vue/cli, it will install successfully.