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

Installation of latest version fails #48

Closed englercj closed 10 years ago

englercj commented 10 years ago

Trying to install the latest version of urequire fails with the following error on Windows 8:

npm ERR! Error: ENOENT, chmod 'c:\Users\Chad\repos\grapefruit\node_modules\urequire\build\code\urequireCmd.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/isaacs/npm/issues>

npm ERR! System Windows_NT 6.2.9200
npm ERR! command "c:\\Program Files\\nodejs\\node.exe" "c:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "i" "urequire"
npm ERR! cwd c:\Users\Chad\repos\grapefruit\node_modules
npm ERR! node -v v0.10.23
npm ERR! npm -v 1.3.17
npm ERR! path c:\Users\Chad\repos\grapefruit\node_modules\urequire\build\code\urequireCmd.js
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     c:\Users\Chad\repos\grapefruit\node_modules\npm-debug.log
npm ERR! not ok code 0

Node versions:

$ node -v
v0.10.23

$ npm -v
1.3.17

This is for urequire@0.6.9. I do not get this error on linux.

englercj commented 10 years ago

Wow, really weird. I did a cache clean on npm (npm cache clean) and the install worked O.o

Sorry about the trigger finger on the report!

anodynos commented 10 years ago

That's weird - I tested on Win7x64 and it worked ok - Ill reboot to my Windows8x64 later and see if it happens there also

Thanks for the report

englercj commented 10 years ago

I don't think it was your repo, I think something strange happened with npm's cache. When I cleared npm's cache everything was fine.

anodynos commented 10 years ago

Ok - I ll consider it a one-off. Are you @englercj still having problems any with watch BTW ?

englercj commented 10 years ago

Watch works fine, but I still get an issue with the builds stopping my grunt tasks on windows. I don't experience it on linux at all though.

anodynos commented 10 years ago

Hmmm...shame & tough one - I've heard about windows file watching issues so I doubt its something specific with urequire, I guess it has to do with the underlying libraries.

Please do me a favor next time you dev and use urequire with the build.watch option outside grunt (eg just export your 'min' config object from a .js module without the top level 'min' key) and see if it still does it... Then enable debugLevel:50 and see where it halts...

I am afraid I 've quit my old trusted Windows 2003 VM box about 2 years ago. I switched to a Kubuntu 12.4LTS VM, knowning very little about the pinguin back then, but I never looked back since... Im usually on a Dell Core i7 /8GB/SSD loaded with Windows 7/8 (that I only use only as a host to load drivers & play videos/music/games etc). The best part is I can boot my Kubuntu VM from the SSD on any host PC, not just my laptop ;-)

hipertracker commented 9 years ago

It does not work on OS X either https://github.com/anodynos/uRequire/issues/61. It must be somehow related to npm version. My OS X is using npm v2.x. My Ubuntu and Windows 10.beta use npm 1.x and I can install urequire there.