anodynos / uRequire

The Ultimate JavaScript Module Builder & Automagical Task Runner. Convert AMD & CommonJS/NodeJS modules to UMD, AMD, CommonJS or bundle them as `combined.js` (rjs & almond, AMDclean soon) & automagically run/test/watch them on nodejs, Web/AMD or Web/Script. Declarative & DRY config with inheritance. Manipulate & inject dependencies, module code, banners, version etc while building with a single line. Support two kinds of plugins, ResourceConverter (i.e file level) and AfterBuilder (i.e the whole bundle). Transparent support for Coffeescript, IcedCoffeescript, Coco, LiveScript – they’re just JavaScript :-)
http://anodynos.github.io/uRequire
MIT License
265 stars 20 forks source link

npm 2.x installation is broken #61

Closed hipertracker closed 9 years ago

hipertracker commented 9 years ago

HOW to use it if it even cannot be installed? npm install does not work :(

$ npm install
npm ERR! Darwin 14.0.0
npm ERR! argv "node" "/usr/local/bin/npm" "install"
npm ERR! node v0.10.34
npm ERR! npm  v2.1.14
npm ERR! code EPEERINVALID

npm ERR! peerinvalid The package urequire does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer urequire-rc-coffee-script@0.1.2 wants urequire@~0.7.0
npm ERR! peerinvalid Peer grunt-urequire@0.7.1 wants urequire@^0.7.0
npm ERR! peerinvalid Peer urequire-rc-exec@0.1.1 wants urequire@~0.7.0
npm ERR! peerinvalid Peer urequire-rc-less@0.1.1 wants urequire@~0.7.0
npm ERR! peerinvalid Peer urequire-ab-specrunner@0.2.0 wants urequire@^0.7.0-beta.11
npm ERR! peerinvalid Peer urequire-rc-inject-version@0.1.4 wants urequire@~0.7.0
npm ERR! peerinvalid Peer urequire-rc-import-keys@0.1.2 wants urequire@~0.7.0
npm ERR! peerinvalid Peer urequire-ab-grunt-contrib-watch@0.0.1 wants urequire@^0.7.0-beta.11

npm-debug.log attached

hipertracker commented 9 years ago

It must be somehow related to the npm version. My OS X is using npm v2.x. My Ubuntu and Windows 10.beta boxes use npm 1.x and I CAN install urequire there...

anodynos commented 9 years ago

Thank for the report @hipertracker - I am afraid I haven't tested with npm 2.x - I will check its compatible for the v0.7 release. Regards

michaelcarter commented 9 years ago

+1 for this issue.

mattydoincode commented 9 years ago

+1 this is super blocking! Is there an alternative way to get this setup?

anodynos commented 9 years ago

Its probably due to npm dependencies - perhaps you can change the "^" etc dependencies in package.json of urequire to absolute ones (of the latest versions published) and it should work ok.

I will release a fix by next week. Sorry for this, I am in a big transition phase in my life and have limited time.

mattydoincode commented 9 years ago

No stress Agelos, best of luck to you and thanks for the tips.

On Thu, Feb 5, 2015 at 11:32 AM, Agelos Pikoulas notifications@github.com wrote:

Its probably due to npm dependencies - perhaps you can change the "^" etc dependencies in package.json of urequire to absolute ones (of the latest versions published) and it should work ok.

I will release a fix by next week. Sorry for this, I am in a big transition phase in my life and have limited time.

— Reply to this email directly or view it on GitHub https://github.com/anodynos/uRequire/issues/61#issuecomment-73077304.

anodynos commented 9 years ago

Ok! Found the culprit http://blog.npmjs.org/post/98131109725/npm-2-0-0 & some time for open source - I ll hopefully release a fix this weekend & v7.0 soon (its mostly docs that need revising).

anodynos commented 9 years ago

The npm@2.x issue was actually in the deps of urequire (eg urequire-rc-inject-version). These are all now updated on npm & the latest version 0.7.0-beta.14 should work without problems. Also closing https://github.com/aearly/grunt-urequire/issues/14