Skip to content
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

Problem when use VuePress in an existing project #87

Closed
tinchox5 opened this issue Apr 16, 2018 · 3 comments
Closed

Problem when use VuePress in an existing project #87

tinchox5 opened this issue Apr 16, 2018 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@tinchox5
Copy link

Step to reproduce:
Start a clean vue project using vue-cli@2.9.3, then install Vuepress@0.4.6 in the main project folder using "npm install -D vuepress".

What happens:

npm WARN mini-css-extract-plugin@0.4.0 requires a peer of webpack@^4.4.0 but none is installed. You must install peer dependencies yourself.
npm WARN webpack-serve@0.3.1 requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN time-fix-plugin@2.0.0 requires a peer of webpack@>=4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN koa-webpack@3.0.2 requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN webpack-dev-middleware@3.1.2 requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN webpack-hot-client@2.2.2 requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself.
@yyx990803
Copy link
Member

It's weird because yarn is able to produce a correct dep tree in this case but npm cannot...
I'd suggest using yarn for now.

@yyx990803 yyx990803 added the help wanted Extra attention is needed label Apr 17, 2018
@tinchox5
Copy link
Author

Thank you!

@yyx990803
Copy link
Member

Confirmed this is a known issue in npm. Will likely have to use Yarn for this specific case for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants