Skip to content
This repository has been archived by the owner on Jun 16, 2020. It is now read-only.

newb question #206

Open
brw31415 opened this issue Feb 19, 2016 · 4 comments
Open

newb question #206

brw31415 opened this issue Feb 19, 2016 · 4 comments

Comments

@brw31415
Copy link

hi, i installed mercury on ubuntu, this way : mkdir project; cd project;npm i mercury; then node project.js and produced this error: hg.app(document.body, Foo({ <- ReferenceError: document is not defined
i also cloned it and tried running an example program in a cloned mercury project directory after running npm install , node examples/count.js, but it came back not running with no output to console.

thanks

@gcallaghan
Copy link
Contributor

I think you need to run:
npm run examples
Take a look at the scripts section of package.json to see the build targets.

@brw31415
Copy link
Author

ok,thanks!

On Fri, Feb 19, 2016 at 11:37 AM, Grant Callaghan [email protected]
wrote:

I think you need to run:
npm run examples
Take a look at the scripts section of package.json to see the build
targets.


Reply to this email directly or view it on GitHub
#206 (comment).

@emilbayes
Copy link

@brw31415 I don't know if min-document is supported by Mercury, but that might help you. Note that you are running mercury in node, while most of the exampels are intended to be run in a browser, via something like browserify :) Hope that helps!

@brw31415
Copy link
Author

actually the examples seem to run fine on node.

On Thu, Feb 25, 2016 at 8:49 AM, Emil Bay [email protected] wrote:

@brw31415 https://github.com/brw31415 I don't know if min-document
https://www.npmjs.com/package/min-document is supported by Mercury, but
that might help you. Note that you are running mercury in node, while most
of the exampels are intended to be run in a browser, via something like
browserify :) Hope that helps!


Reply to this email directly or view it on GitHub
#206 (comment).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants