···
-----Original Message-----
From: "Sam Sudar"
Sent: 5/13/2015 6:17 PM
To: "ODK Community"
Subject: Re: [ODK Community] Error when running grunt - odk survey
I think the problem is likely this section in Gruntfile.js:
// Mac (and maybe others--add as discovered), expects
// Google Chrome
grunt.log.writeln('detected non-Windows environment');
return 'Google Chrome';
It basically is determining that you're not on a windows machine and trying to launch Chrome. The command to launch Chrome differs platform to platform, and I couldn't find a list of what they all were when writing the Gruntfile. At this point in the script it looks like everything has worked fine, it just fails when it tries to open Chrome for you.
This is the module we're using to try and open things for you:
I'm not sure how it is using the magic Chrome string there, so I can't provide any sure answers. Chrome, chrome, Google Chrome, etc, are all reasonable things to try. You can also just comment out the app
parameter entirely, and the default system browser should open instead. You can then navigate to localhost:8000 on your own.
If you do find what the magic string should be for linux, I'll add it to the Gruntfile.
Let me know if you're still stuck.
On Wed, May 13, 2015 at 7:49 AM, Collins Adoyo collins.adoyo@gmail.com wrote:
Dear Sam,
Yes; I have chrome, NodeJS all running well. My OS is Linux 12.04
C
From: Sam Sudar
Sent: 5/13/2015 5:39 PM
To: ODK Community
Subject: Re: [ODK Community] Error when running grunt - odk survey
Do you have Chrome installed on your machine?
On Wed, May 13, 2015 at 6:24 AM, Collins McAdoyo collins.adoyo@gmail.com wrote:
Dear Mitch,
I have followed the instructions in the odksurvey configuration and further installed vagrant but still when I try running grunt from my project window i gen this error:
cxdoyo@-16648:~/Documents/ODK/appDesigner_rev126_full$ grunt
detected non-Windows environment
Running "server" task
Running "connect:livereload" (connect) task
Started connect web server on http://localhost:8000
Running "open:server" (open) task
Warning: Command failed: /bin/sh: 1: Google: not found
Use --force to continue.
Aborted due to warnings.
Execution Time (2015-05-13 13:13:26 UTC)
loading tasks 446ms ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 91%
connect:livereload 30ms ▇▇▇ 6%
open:server 11ms ▇ 2%
Total 488ms
cxdoyo@16648:~/Documents/ODK/appDesigner_rev126_full$
Please what could be the problem.
Collins
--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en
You received this message because you are subscribed to the Google Groups "ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en
You received this message because you are subscribed to the Google Groups "ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en
You received this message because you are subscribed to the Google Groups "ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en
You received this message because you are subscribed to the Google Groups "ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.