senchalabs / jQTouch

Create powerful mobile apps with just HTML, CSS, and Zepto.js (or jQuery).
http://www.jqtouch.com/
MIT License
2.79k stars 592 forks source link

npm install and Grunt Build Failing on mac #511

Closed martynpanes closed 10 years ago

martynpanes commented 10 years ago

When I try and run an npm install after cloning the master branch I get the following error message: npm ERR! jqt@0.99.4 prepublish: grunt dist --verbose npm ERR! Exit status 6 npm ERR! npm ERR! Failed at the jqt@0.99.4 prepublish script. npm ERR! This is most likely a problem with the jqt package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! grunt dist --verbose npm ERR! You can get their info via: npm ERR! npm owner ls jqt npm ERR! There is likely additional logging output above. npm ERR! System Darwin 13.1.0 npm ERR! command "node" "/usr/local/bin/npm" "install" npm ERR! cwd /Users/martynpanes/gitrepos/jQTouch npm ERR! node -v v0.10.22 npm ERR! npm -v 1.3.14 npm ERR! code ELIFECYCLE npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /Users/martynpanes/gitrepos/jQTouch/npm-debug.log npm ERR! not ok code 0

It seem to fail on the compass build task as follows: Running "compass" task

Running "compass:compile" (compass) task Verifying property compass.compile exists in config...OK Files: themes/scss/apple.scss, themes/scss/include/_animations.scss, themes/scss/include/_base.scss, themes/scss/include/_core.scss, themes/scss/include/_skeleton.scss, themes/scss/include/_widgets.scss, themes/scss/innsbruck.scss, themes/scss/jqtouch.scss, themes/scss/vanilla.scss Options: load="submodules/compass-recipes/", sassDir="themes/scss", cssDir="build/themes/css" error themes/scss/apple.scss (Line 42 of themes/scss/include/_core.scss: File to import not found or unreadable: recipes. Load paths: /Users/martynpanes/gitrepos/jQTouch/themes/scss /Library/Ruby/Gems/2.0.0/gems/compass-0.12.6/frameworks/blueprint/stylesheets /Library/Ruby/Gems/2.0.0/gems/compass-0.12.6/frameworks/compass/stylesheets Compass::SpriteImporter) identical build/themes/css/apple.css error themes/scss/innsbruck.scss (Line 42 of themes/scss/include/_core.scss: File to import not found or unreadable: recipes. Load paths: /Users/martynpanes/gitrepos/jQTouch/themes/scss /Library/Ruby/Gems/2.0.0/gems/compass-0.12.6/frameworks/blueprint/stylesheets /Library/Ruby/Gems/2.0.0/gems/compass-0.12.6/frameworks/compass/stylesheets Compass::SpriteImporter) identical build/themes/css/innsbruck.css error themes/scss/jqtouch.scss (Line 42 of themes/scss/include/_core.scss: File to import not found or unreadable: recipes. Load paths: /Users/martynpanes/gitrepos/jQTouch/themes/scss /Library/Ruby/Gems/2.0.0/gems/compass-0.12.6/frameworks/blueprint/stylesheets /Library/Ruby/Gems/2.0.0/gems/compass-0.12.6/frameworks/compass/stylesheets Compass::SpriteImporter) identical build/themes/css/jqtouch.css error themes/scss/vanilla.scss (Line 42 of themes/scss/include/_core.scss: File to import not found or unreadable: recipes. Load paths: /Users/martynpanes/gitrepos/jQTouch/themes/scss /Library/Ruby/Gems/2.0.0/gems/compass-0.12.6/frameworks/blueprint/stylesheets /Library/Ruby/Gems/2.0.0/gems/compass-0.12.6/frameworks/compass/stylesheets Compass::SpriteImporter) identical build/themes/css/vanilla.css Compilation took 0.919s Warning: ↑ Use --force to continue.

thomasyip commented 10 years ago

Look like a compass version issues. But, I am no expert on ruby.

We use Travis-CI and it has passed the build process / test just yesterday on a pull-request. You might want to take a look at the Travis log to see how yours build is different than Travis'. It might help you figure it out.

martynpanes commented 10 years ago

Hi There, Thanks Thomas, I have tried re-installing ruby npm and compass to the latest versions but still get the same problem - I can get the grunt build to run to compile the coffee script which is all I really need, so not a major problem. Martyn. On 7 May 2014, at 17:38, Thomas @ BeeDesk notifications@github.com wrote:

Look like a compass version issues. But, I am no expert on ruby.

We use Travis-CI and it has passed the build process / test just yesterday on a pull-request. You might want to take a look at the Travis log to see how yours build is different than Travis'. It might help you figure it out. — Reply to this email directly or view it on GitHub.

thomasyip commented 10 years ago

Glad you could workaround it.

martynpanes commented 10 years ago

Hi Thomas, Got to the bottom of my compass compile issue with jQt - I don’t see it mentioned in the gitHub docs but I had to copy the compass recipes gem into the submodules directory of jQTouch - compass was then happy. Schoolboy error? or is the nom install script supposed to take care of this? Martyn. On 8 May 2014, at 17:43, Thomas @ BeeDesk notifications@github.com wrote:

Glad you could workaround it.

— Reply to this email directly or view it on GitHub.

thomasyip commented 10 years ago

Did you do a "git submodule update --init". Git should download all dependency with that command. If the doc missed it, I will update the doc.

Thanks for looping back.

martynpanes commented 10 years ago

Aha! - I did just follow the readme.md on github so it may be worth putting a line in mentioning it for the noobs like me ;) - it didn’t occur to me that compass-recipes would be pull able from a git repo. On 10 May 2014, at 18:10, Thomas @ BeeDesk notifications@github.com wrote:

Did you do a "git submodule update --init". Git should download all dependency with that command. If the doc missed it, I will update the doc.

Thanks for looping back. — Reply to this email directly or view it on GitHub.

thomasyip commented 10 years ago

The default Grunt task should also do it for you. I will double check.

thomasyip commented 10 years ago

I rewrote the default grunt task a few months back to get the watch task to work.

The fix made the default task skipped some update-modules. Both the task and README.md is updated.

Sorry for your time lost on this. Thanks for figuring it out.