Vue-loader: Unmet dependencies

Created on 4 Oct 2015  ยท  6Comments  ยท  Source: vuejs/vue-loader

I'm afraid some dependencies are missing :

$ npm install --save-dev vue-loader
/Users/loranger/Developer/projects/fairechier
โ”œโ”€โ”€ UNMET PEER DEPENDENCY css-loader@*
โ”œโ”€โ”€ UNMET PEER DEPENDENCY style-loader@*
โ”œโ”€โ”€ UNMET PEER DEPENDENCY vue-html-loader@^1.0.0
โ””โ”€โ”ฌ [email protected]
  โ”œโ”€โ”€ [email protected]
  โ”œโ”€โ”ฌ [email protected]
  โ”‚ โ””โ”€โ”€ [email protected]
  โ”œโ”€โ”€ [email protected]
  โ”œโ”€โ”€ [email protected]
  โ””โ”€โ”ฌ [email protected]
    โ”œโ”€โ”€ [email protected]
    โ”œโ”€โ”€ [email protected]
    โ””โ”€โ”€ [email protected]

npm WARN EPEERINVALID [email protected] requires a peer of vue-html-loader@^1.0.0 but none was installed.
npm WARN EPEERINVALID [email protected] requires a peer of css-loader@* but none was installed.
npm WARN EPEERINVALID [email protected] requires a peer of style-loader@* but none was installed.

Did I miss something ?

Most helpful comment

Shouldn't these be regular dependencies then? Seems like a lot of steps to get vue-loader up and running, and they're not documented :/ Perhaps I'm not understanding peer dependencies well enough.

All 6 comments

Are you using npm3? Starting in npm3 it no longer auto-install peer dependencies for you. You have to install these peer dependencies yourself (with --save so they are included in your package.json).

Shouldn't these be regular dependencies then? Seems like a lot of steps to get vue-loader up and running, and they're not documented :/ Perhaps I'm not understanding peer dependencies well enough.

@timwis the easiest way is really just clone https://github.com/vuejs/vue-loader-example and tweak it for your needs. It has everything set up.

would someone post a sample project that is working and accessible .
will be good help to most of the people includeing me :)

@dipen7 I recommend using vue-cli (the current stable version, 2.x) with the webpack-simple template:

npm install --global vue-cli
vue init webpack-simple project-name-here

Thanks for the reply and Actually i've already started a project can i use
this for the prebuild project? If yes then how?

On Mon, Apr 9, 2018, 3:40 PM Tim Wisniewski notifications@github.com
wrote:

@dipen7 https://github.com/dipen7 I recommend using vue-cli
https://github.com/vuejs/vue-cli/tree/master (the current stable
version, 2.x) with the webpack-simple
https://github.com/vuejs-templates/webpack-simple template:

npm install --global vue-cli
vue init webpack-simple project-name-here

โ€”
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/vuejs/vue-loader/issues/21#issuecomment-379698768,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AfY6L-nmkRT8qNrN1vKU1i6xrVe0vquyks5tmzAOgaJpZM4GIlUb
.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

frangio picture frangio  ยท  3Comments

flashios09 picture flashios09  ยท  3Comments

NextSeason picture NextSeason  ยท  3Comments

sdvcrx picture sdvcrx  ยท  3Comments

chrisvfritz picture chrisvfritz  ยท  4Comments