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

@vue/cli fails to install using both npm and yarn

Open teleclimber opened this issue 8 years ago • 6 comments

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

teleclimber avatar Aug 14 '18 18:08 teleclimber

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.

ph1p avatar Aug 14 '18 19:08 ph1p

Fixed with apollo-server-express 2.0.2. Try remove and add @vue/cli again.

Akryum avatar Aug 14 '18 19:08 Akryum

not work vue-cli

moslemir avatar Aug 14 '18 19:08 moslemir

Works for me now.

teleclimber avatar Aug 15 '18 15:08 teleclimber

I have this same problem. Not sure where it's coming from. Fails to install with both npm and yarn.

darthchudi avatar Nov 28 '18 10:11 darthchudi

Install the failed packages manually, then rerun the installation of @vue/cli, it will install successfully.

chakri622 avatar Jan 12 '19 23:01 chakri622