handlebars-loader icon indicating copy to clipboard operation
handlebars-loader copied to clipboard

Error while installing via npm

Open lmartins opened this issue 12 years ago • 15 comments

Is this related to my setup or an issue with the loader dependencies?

npm ERR! peerinvalid The package handlebars does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer [email protected] wants handlebars@~1.3.0

lmartins avatar Jun 10 '14 15:06 lmartins

Sorry about that, turns out it was the handlebars version I was using in my package.json that was causing the issue.

lmartins avatar Jun 10 '14 16:06 lmartins

This is a real issue. You shouldn't have to downgrade your copy of handlebars.

The issue is that handlebars-loader is specifying the peer dependency with too strict a version number. I'm reopening this issue and I'll update the loader to use "1.x" instead.

Thanks!

altano avatar Jun 10 '14 18:06 altano

Thank you Alan. I should say that the error occurred with a beta version of Handlebars, which NPM pulls by default with npm install.

lmartins avatar Jun 10 '14 19:06 lmartins

Hmm, strange, shouldn't a beta version be the next version as a prerelease?

Either way, I updated the handlebars-loader peerDependency to be lenient to patch builds in version 1.0.7: https://github.com/altano/handlebars-loader/commit/6f92dee44e9fce27b486b3cbd95cea56fa2f6f5c so you shouldn't hit the issue again.

altano avatar Jun 11 '14 04:06 altano

Thanks again Alan.

lmartins avatar Jun 11 '14 09:06 lmartins

Im afraid it still complaints about the Handlebars version:

npm ERR! peerinvalid The package handlebars does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer [email protected] wants handlebars@>= 1.3.0 < 2

lmartins avatar Jun 13 '14 22:06 lmartins

What is your package.json handlebars version?


From: Luis Martinsmailto:[email protected] Sent: ý6/ý13/ý2014 6:25 PM To: altano/handlebars-loadermailto:[email protected] Cc: Alanmailto:[email protected] Subject: Re: [handlebars-loader] Error while installing via npm (#6)

Im afraid it still complaints about the Handlebars version:

npm ERR! peerinvalid The package handlebars does not satisfy its siblings' peerDependencies requirements! npm ERR! peerinvalid Peer [email protected] wants handlebars@>= 1.3.0 < 2

— Reply to this email directly or view it on GitHubhttps://github.com/altano/handlebars-loader/issues/6#issuecomment-46066546.

altano avatar Jun 13 '14 23:06 altano

I should have been clearer in my previous message, it still complains about handlebars version but only when the latest version installed via NPM, which get's a "beta" label to it. Not sure why does npm install that by default. Im ok with it as it is, just wanting to let you know that it still happens after your update.

lmartins avatar Jun 15 '14 14:06 lmartins

Oh, yes, of course. When 2.0 comes out I'll investigate compatibility with handlebars-loader and update the peerDependencies field accordingly.

Thanks!

altano avatar Jun 15 '14 17:06 altano

As a heads up we're moving towards the final stages of 2.0. Hopefully will have a beta release in the next few weeks that documents all of the changes in aggregate following by a short feedback cycle and then the final 2.0.0 release. Very curious to see if you run into issues as your integration is fairly close to the Handlebars logic but I haven't don't a diff yet to see all of the possible API breaks that we might have in the final release.

kpdecker avatar Aug 16 '14 19:08 kpdecker

@altano would you have a look into this? Seems 2.0 is out in the wild.

iby avatar Sep 16 '14 22:09 iby

still seeing this issue, any thought?

enricostano avatar Oct 03 '14 23:10 enricostano

I see this too

Midnight-Coder avatar Nov 14 '14 18:11 Midnight-Coder

For those of you that were recently hitting this, we were really late in adding handlebars 2.0 support, but it's up on NPM now so you shouldn't have issues.

But, just for future reference, when you hit this kind of error it means you're using a plug-in version that is incompatible with a peer module (e.g. a grunt plugin that is incompatible with the version of grunt you are using). Please read this blog post for more info, since you should understand peer dependencies if you're using Node: http://blog.nodejs.org/2013/02/07/peer-dependencies/

altano avatar Jan 31 '15 06:01 altano

I am still getting error: Failed to parse package.json data.

rcolepeterson avatar Dec 15 '15 20:12 rcolepeterson