jquery / jqueryui.com

jQuery UI web site content
https://jqueryui.com
Other
132 stars 114 forks source link

Trying To Deploy jqueryui.com to vagrant jquery-wp-content setup #102

Closed juicymark closed 9 years ago

juicymark commented 9 years ago

Hi

I have tried to deploy jqueryui.com to my vagrant setup but am still getting npm errors and grunt task failing.

I have now tried using the latest copy of the repo.

cd jqueryui.com juice:jqueryui.com mark$ npm install

npm part

node-syslog@1.1.7 install /Volumes/Data/Development/vHosts/Github/jQuery/jquery-sites-content/jqueryui.com/jqueryui.com/node_modules/download.jqueryui.com/node_modules/simple-log/node_modules/node-syslog

node-gyp rebuild

CXX(target) Release/obj.target/syslog/syslog.o SOLINK_MODULE(target) Release/syslog.node SOLINK_MODULE(target) Release/syslog.node: Finished npm WARN engine hawk@0.10.2: wanted: {"node":"0.8.x"} (current: {"node":"0.10.33","npm":"1.4.28"}) npm WARN engine sntp@0.1.4: wanted: {"node":"0.8.x"} (current: {"node":"0.10.33","npm":"1.4.28"}) npm WARN engine boom@0.3.8: wanted: {"node":"0.8.x"} (current: {"node":"0.10.33","npm":"1.4.28"}) npm WARN engine hoek@0.7.6: wanted: {"node":"0.8.x"} (current: {"node":"0.10.33","npm":"1.4.28"}) npm WARN engine cryptiles@0.1.3: wanted: {"node":"0.8.x"} (current: {"node":"0.10.33","npm":"1.4.28"}) grunt@0.4.5 node_modules/grunt ├── which@1.0.8 ├── dateformat@1.0.2-1.2.3 ├── eventemitter2@0.4.14 ├── getobject@0.1.0 ├── rimraf@2.2.8 ├── colors@0.6.2 ├── async@0.1.22 ├── hooker@0.2.3 ├── grunt-legacy-util@0.2.0 ├── exit@0.1.2 ├── lodash@0.9.2 ├── coffee-script@1.3.3 ├── underscore.string@2.2.1 ├── iconv-lite@0.2.11 ├── nopt@1.0.10 (abbrev@1.0.5) ├── glob@3.1.21 (inherits@1.0.0, graceful-fs@1.2.3) ├── minimatch@0.2.14 (sigmund@1.0.0, lru-cache@2.5.0) ├── findup-sync@0.1.3 (lodash@2.4.1, glob@3.2.11) ├── js-yaml@2.0.5 (argparse@0.1.16, esprima@1.0.4) └── grunt-legacy-log@0.1.1 (underscore.string@2.3.3, lodash@2.4.1)

cheerio@0.12.4 node_modules/cheerio ├── entities@0.5.0 ├── underscore@1.4.4 ├── htmlparser2@3.1.4 (domelementtype@1.1.3, domutils@1.1.6, domhandler@2.0.3, readable-stream@1.0.33) └── cheerio-select@0.0.3 (CSSselect@0.7.0)

grunt-jquery-content@2.0.0 node_modules/grunt-jquery-content ├── spawnback@1.0.0 ├── grunt-check-modules@1.0.0 ├── which@1.0.5 ├── rimraf@2.2.8 ├── async@0.9.0 ├── marked@0.3.2 ├── he@0.5.0 ├── highlight.js@7.3.0 ├── cheerio@0.17.0 (dom-serializer@0.0.1, entities@1.1.1, htmlparser2@3.7.3, CSSselect@0.4.1, lodash@2.4.1) └── grunt-wordpress@2.1.0 (gilded-wordpress@1.0.0)

download.jqueryui.com@2.0.19 node_modules/download.jqueryui.com ├── grunt-check-modules@0.2.0 ├── dateformat@1.0.2-1.2.3 ├── sqwish@0.2.0 ├── semver@1.1.0 ├── async@0.1.22 ├── rimraf@2.0.2 (graceful-fs@1.1.14) ├── lzma@1.2.1 ├── grunt-contrib-copy@0.4.1 ├── grunt-contrib-clean@0.5.0 (rimraf@2.2.8) ├── underscore@1.4.4 ├── optimist@0.3.4 (wordwrap@0.0.2) ├── glob@4.0.0 (inherits@2.0.1, minimatch@0.3.0) ├── archiver@0.4.1 (readable-stream@0.3.1) ├── grunt-contrib-uglify@0.2.0 (grunt-lib-contrib@0.6.1) ├── grunt-contrib-handlebars@0.5.7 (grunt-lib-contrib@0.5.3) ├── formidable@1.0.9 ├── connect@1.9.2 (mime@1.2.11, qs@2.3.3) ├── requirejs@2.1.8 ├── uglify-js@2.2.5 (optimist@0.3.7, source-map@0.1.40) ├── handlebars@1.0.12 (uglify-js@2.3.6) ├── winston@0.7.3 (cycle@1.0.3, stack-trace@0.0.9, eyes@0.1.8, async@0.2.10, pkginfo@0.3.0, colors@0.6.2, request@2.16.6) ├── grunt-contrib-jshint@0.9.2 (hooker@0.2.3, jshint@2.4.4) ├── grunt@0.4.1 (which@1.0.8, eventemitter2@0.4.14, colors@0.6.2, hooker@0.2.3, nopt@1.0.10, minimatch@0.2.14, glob@3.1.21, lodash@0.9.2, coffee-script@1.3.3, underscore.string@2.2.1, iconv-lite@0.2.11, js-yaml@2.0.5, findup-sync@0.1.3) ├── bower@1.3.8 (is-root@0.1.0, junk@0.3.0, stringify-object@0.2.1, which@1.0.8, abbrev@1.0.5, chmodr@0.1.0, osenv@0.1.0, opn@0.1.2, archy@0.0.2, rimraf@2.2.8, lru-cache@2.5.0, bower-logger@0.2.2, bower-endpoint-parser@0.2.2, graceful-fs@3.0.5, lockfile@0.4.3, nopt@3.0.1, retry@0.6.1, chalk@0.4.0, tmp@0.0.23, q@1.0.1, request-progress@0.3.1, shell-quote@1.4.2, semver@2.3.2, p-throttler@0.0.1, fstream@0.1.31, promptly@0.2.0, bower-json@0.4.0, mkdirp@0.5.0, fstream-ignore@0.0.10, bower-config@0.5.2, tar@0.1.20, decompress-zip@0.0.8, request@2.36.0, glob@4.0.6, cardinal@0.4.4, bower-registry-client@0.2.1, update-notifier@0.2.2, mout@0.9.1, handlebars@1.3.0, insight@0.3.1, inquirer@0.5.1) ├── simple-log@1.1.0 (node-syslog@1.1.7) └── gm@1.8.1 (debug@0.7.0)

npm prune then grunt deploy

juice:jqueryui.com mark$ grunt deploy Running "check-modules" task

Running "clean-dist" task

Running "build-posts:page" (build-posts) task Built 98 pages.

Running "build-resources:all" (build-resources) task Built 128 resources.

Running "build-download" task Initializing download module, might take a while...

Warning: Command failed: Use --force to continue.

Aborted due to warnings. juice:jqueryui.com mark$

Please can someone advise ho to solve this issue.

Regards

Mark

rxaviers commented 9 years ago

Please, could you paste the output of running the commands below in your local environment?

cd node_modules/download.jqueryui.com
grunt prepare
juicymark commented 9 years ago

juice:jqueryui.com mark$ cd node_modules/download.jqueryui.com/ juice:download.jqueryui.com mark$ grunt prepare Running "check-modules" task

Running "mkdirs" task

Running "prepare-jquery-ui" task Fetch updates for jquery-ui repo

Fetched repo Fetch updates for api.jqueryui.com repo Fetched repo Checking out jquery-ui branch/tag: 1.11.2 Done with checkout Installing jquery-ui npm modules Error installing npm modules: undefined Warning: Task "prepare-jquery-ui" failed. Use --force to continue.

Aborted due to warnings. juice:download.jqueryui.com mark$

jzaefferer commented 9 years ago

Could you try again after running npm cache clean? Also dump the output of npm --version?

juicymark commented 9 years ago

Hi Jörn

After running npm cache clean and trying again i still get the same error as my initial one.

Then i tried npm --version

output was 1.4.8 so i have updated now to 2.1.11

But still get the same issues.

Regards

Mark

rxaviers commented 9 years ago

Another test is try to replicate manually what the script was trying to do. In other words:

cd node_modules/download.jqueryui.com/tmp/jquery-ui/
npm install

PS: I've cloned the repo to a brand new location and executed the commands above, which worked just fine in:

$ npm --version
1.4.23

$ node --version
v0.10.25

Linux
juicymark commented 9 years ago

Hi

I have tried to do the above but cannot since i do not have a folder located in the specified location node_modules/download.jqueryui.com/tmp/jquery-ui/

rxaviers commented 9 years ago

Please, find me (rxaviers) on IRC (http://irc.jquery.org/) #jqueryui-dev @ Freenode during the week (8am BRT - 6pm BRT). It'll be more productive...

juicymark commented 9 years ago

hi rxaviers

I'm now currently away until after the Christmas period, so i will look you up on irc in the new year.

Regards

Mark

rxaviers commented 9 years ago

I'll be away afterwards. You'll probably find me in the first week of 2015 and on... Best regards

arthurvr commented 9 years ago

I'm now currently away until after the Christmas period, so i will look you up on irc in the new year.

You'll probably find me in the first week of 2015 and on... Best regards

@juicymark @rxaviers Ping. You ever talked to each other?

xbili commented 9 years ago

Hi all, I'm having problems with this as well. I've set up vagrant and here's the screen capture from running grunt deploy. screen shot 2015-03-07 at 12 02 41 am

Here's the result from running grunt prepare in node_modules/downloads.jqueryui.com: screen shot 2015-03-07 at 12 04 48 am

I'm able to access vagrant.jqueryui.com but it shows this page with "nothing found" instead: screen shot 2015-03-06 at 11 58 07 pm

I'm running: Mac OSX 10.10.2, vagrant 1.7.2, npm v2.5.1, grunt v0.4.5

Not very sure what is causing this.

jzaefferer commented 9 years ago

Can you try with an npm version <2? 1.4.x should work.

xbili commented 9 years ago

@jzaefferer I've tried with 1.4.20, grunt still returns me the same error. Interestingly I am able to grunt deploy to contribute.jquery.org without fail.

jzaefferer commented 9 years ago

Okay, then you've ran into a different issue. We still have an open ticket to improve the error reporting: https://github.com/jquery/jqueryui.com/issues/93 - maybe you can look into that?

xbili commented 9 years ago

@jzaefferer I see. Sure, I'll look into that. Thanks!

rxaviers commented 9 years ago

In the meanwhile, you can find a better error by running grunt prepare manually inside ./node_modules/download.jqueryui.com/.

On Friday, March 6, 2015, Xu Bili notifications@github.com wrote:

@jzaefferer https://github.com/jzaefferer I see. Sure, I'll look into that. Thanks!

— Reply to this email directly or view it on GitHub https://github.com/jquery/jqueryui.com/issues/102#issuecomment-77588627.

+55 (16) 98138-1582, +1 (415) 568-5854, skype: rxaviers http://rafael.xavier.blog.br

xbili commented 9 years ago

@rxaviers Yup, I've already ran grunt prepare and the results' screen capture is posted earlier.

Appears that the problem lies with grunt.util.spawn process in download.jqueryui.com's Gruntfile. Still looking into it.

rxaviers commented 9 years ago

@rxaviers Yup, I've already ran grunt prepare and the results' screen capture is posted earlier.

Awesome, my bad having not noticed it.

ashg1910 commented 9 years ago

For me: grunt deploy gives-


ashg1910@ashg1910:~/Documents/jquery/jqueryui.com$ grunt deploy Running "check-modules" task

Running "clean-dist" task

Running "build-posts:page" (build-posts) task Built 100 pages.

Running "build-resources:all" (build-resources) task Built 132 resources.

Running "build-download" task Initializing download module, might take a while...

Warning: Command failed: Use --force to continue.

Aborted due to warnings.


And in ./node_modules/download.jqueryui.com


ashg1910@ashg1910:~/Documents/jquery/jqueryui.com/node_modules/download.jqueryui.com$ grunt prepare Running "check-modules" task

Running "mkdirs" task

Running "prepare-jquery-ui" task Fetch updates for jquery-ui repo

Fetched repo Fetch updates for api.jqueryui.com repo Fetched repo Checking out jquery-ui branch/tag: 1.11.4 Done with checkout Installing jquery-ui npm modules Installed npm modules Cleaning up existing jquery-ui/1.11.4 Cleaned Copying jQuery UI 1.11.4 over to jquery-ui/1.11.4 Done copying Checking out jquery-ui branch/tag: 1.10.4 Done with checkout Checking out api.jqueryui.com branch/tag: 1-10 Done with checkout Installing jquery-ui npm modules Installed npm modules Installing api.jqueryui.com npm modules Installed npm modules Building API documentation for jQuery UI Error building documentation: undefined Warning: Task "prepare-jquery-ui" failed. Use --force to continue.

Aborted due to warnings.


my npm version is 1.3.10

xbili commented 9 years ago

@ashg1910 Hi there, I ran into the same problem a while back. You may refer to here for the solution. Try to navigate into node_modules/download.jqueryui.com/tmp/jquery-ui/ and run npm install manually.

Hope this helps!

ashg1910 commented 9 years ago

@xbili : Still not working :(

rxaviers commented 9 years ago

@ashg1910 which error are you getting now?

arthurvr commented 9 years ago

ping @ashg1910 - can you answer to the above question?

ashg1910 commented 9 years ago

I successfully built the setup. No errors now :)

arschmitz commented 9 years ago

We recently fixed a bunch of issues with node > 0.10 so that likely fixed this. I was previously unable to build and am able to now as well. I would say we are probably ok to close this now.

arthurvr commented 9 years ago

Would like some others to confirm but yep, agreed.

jzaefferer commented 9 years ago

Closing due to inactivity. The error handling for the grunt sub process should be a lot better now, so hopefully future issues are easier to resolve.