mrichard / generator-marionette

Yeoman marionette generator a la AMD
329 stars 72 forks source link

grunt-requirejs error #23

Closed 3-16 closed 10 years ago

3-16 commented 10 years ago

grunt-lodashbuilder@0.1.7 postinstall C:\Winginx\home\test\node_modules\grunt-requirejs\node_modules\grunt-lodashbuild er node ./bin/post-install.js

module.js:340 throw err; ^ Error: Cannot find module '../node_modules/lodash/vendor/tar/tar.js' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Module.require (module.js:364:17) at require (module.js:380:17) at C:\Winginx\home\test\node_modules\grunt-requirejs\node_modules\grunt-lodashbuilder\bin\post-install.js:14:13 at Object. (C:\Winginx\home\test\node_modules\grunt-requirejs\node_modules\grunt-lodashbuilder\bin\post-i nstall.js:166:2) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) npm ERR! error rolling back Error: ENOTEMPTY, rmdir 'C:\Winginx\home\test\node_modules\grunt-requirejs\node_modules\grun t-jquerybuilder\node_modules\jquery-builder\jquery\node_modules\grunt\node_modules\underscore.string' npm ERR! error rolling back grunt-requirejs@0.3.5 { [Error: ENOTEMPTY, rmdir 'C:\Winginx\home\test\node_modules\grunt-r equirejs\node_modules\grunt-jquerybuilder\node_modules\jquery-builder\jquery\node_modules\grunt\node_modules\underscore. string'] npm ERR! error rolling back errno: 53, npm ERR! error rolling back code: 'ENOTEMPTY', npm ERR! error rolling back path: 'C:\Winginx\home\test\node_modules\grunt-requirejs\node_modules\grunt-jqueryb uilder\node_modules\jquery-builder\jquery\node_modules\grunt\node_modules\underscore.string' } npm ERR! weird error 8 npm ERR! not ok code 0

I was trying to use yo marionette while answering yes on all questions and got this error. I am not sure what generates the package.json file but the row that causes this problem inside package.json is

"grunt-requirejs": "~0.3.5",

according to https://github.com/asciidisco/grunt-requirejs/pull/74 it should be changed to version 0.4.0 to fix this problem, and so it did.

"grunt-requirejs": "~0.4.0",
bjork24 commented 10 years ago

I also have this issue:

> grunt-lodashbuilder@0.1.7 postinstall /Users/dan/Dropbox/Dev/repos/marionette/node_modules/grunt-requirejs/node_modules/grunt-lodashbuilder
> node ./bin/post-install.js

module.js:340
    throw err;
          ^
Error: Cannot find module '../node_modules/lodash/vendor/tar/tar.js'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at /Users/dan/Dropbox/Dev/repos/marionette/node_modules/grunt-requirejs/node_modules/grunt-lodashbuilder/bin/post-install.js:14:13
    at Object.<anonymous> (/Users/dan/Dropbox/Dev/repos/marionette/node_modules/grunt-requirejs/node_modules/grunt-lodashbuilder/bin/post-install.js:166:2)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
npm ERR! weird error 8
npm ERR! not ok code 0
puredevotion commented 10 years ago

I can confirm this error and the solution as stated above. (running Ubuntu 13.04, linux 3.8.0, node v.0.10.2, npm v.1.3.11

godgav commented 10 years ago

Encountered the same issue on Mac Os X 10.7.5 yo marionette causing

> grunt-lodashbuilder@0.1.7 postinstall /own/marionette-sample/node_modules/grunt-requirejs/node_modules/grunt-lodashbuilder
> node ./bin/post-install.js

module.js:340
    throw err;
          ^
Error: Cannot find module '../node_modules/lodash/vendor/tar/tar.js'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at /own/marionette-sample/node_modules/grunt-requirejs/node_modules/grunt-lodashbuilder/bin/post-install.js:14:13
    at Object.<anonymous> (/own/marionette-sample/node_modules/grunt-requirejs/node_modules/grunt-lodashbuilder/bin/post-install.js:166:2)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
npm ERR! weird error 8
npm ERR! Error: ENOENT, lstat '/var/folders/k7/_705wygx5mqfz8fg0cbt5xmc0000gn/T/npm-74509-a3925Kmh/1381223967457-0.7786163305863738/package/dist/1.8.3/jquery-offset.js'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

npm ERR! System Darwin 11.4.2
npm ERR! command "/usr/local/Cellar/node/0.10.20/bin/node" "/usr/local/bin/npm" "install"
npm ERR! cwd /own/marionette-sample
npm ERR! node -v v0.10.20
npm ERR! npm -v 1.3.11
npm ERR! path /var/folders/k7/_705wygx5mqfz8fg0cbt5xmc0000gn/T/npm-74509-a3925Kmh/1381223967457-0.7786163305863738/package/dist/1.8.3/jquery-offset.js
npm ERR! fstream_path /var/folders/k7/_705wygx5mqfz8fg0cbt5xmc0000gn/T/npm-74509-a3925Kmh/1381223967457-0.7786163305863738/package/dist/1.8.3/jquery-offset.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/local/Cellar/node/0.10.20/lib/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
mrichard commented 10 years ago

this should be fixed with last merge.

gihrig commented 10 years ago

I encountered this issue today, after installing with:

npm install generator-marionette

I had to manually update several version numbers in package.json, before yo marionette completed without errors.

It appears the github and npm repos are out of sync.

The project versions in package.json are the same, 0.1.3 but the npm repo is lacking an update to the grunt-requirejs version, and other fixes no-doubt.

Further, the zip file download on this site is older still, with a project version of 0.1.0 and file dates of Aug 5, 2013.

It would be helpful to have these sources updated.

Thanks!

mrichard commented 10 years ago

Hi, npm has been updated to v 1.4. Let me know if there still are issues.

gihrig commented 10 years ago

Working as expected.

Thanks much!