Error while installing via npm
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
Sorry about that, turns out it was the handlebars version I was using in my package.json that was causing the issue.
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!
Thank you Alan. I should say that the error occurred with a beta version of Handlebars, which NPM pulls by default with npm install.
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.
Thanks again Alan.
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
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.
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.
Oh, yes, of course. When 2.0 comes out I'll investigate compatibility with handlebars-loader and update the peerDependencies field accordingly.
Thanks!
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.
@altano would you have a look into this? Seems 2.0 is out in the wild.
still seeing this issue, any thought?
I see this too
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/
I am still getting error: Failed to parse package.json data.