-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Cannot find module 'canvas' #91
Comments
My guess is that something went wrong during the installation of In my experience nvm install 9.0.0
npm -v #5.5.1
npm update -g npm
npm -v #5.10.0
npm explore npm -g -- npm install node-gyp@latest
mkdir ~/.webppl
cd ~/.webppl
npm install probmods/webppl-viz Node v9 is rather old of course, but I expect it to be OK with WebPPL. It may also be possible to upgrade Node once Hope that helps. |
This seems not to work for me unfortunately. It's very hard to install, but if you somehow manage, it still gives a runtime error
|
I've managed to get it to work using a extended set of @null-a 's instructions
you can grab a tar.gz just by downloading the repo and then calling |
Hi,
I am trying to use webppl-viz,
but it seems like that something wrong with canvas dependency.
I get the error: "Error: Cannot find module 'canvas'".
i use the viz as
viz(thetaPosterior);
and run the program as
webppl .\survey\survey-with-half.wppl --require webppl-viz
Regards,
Tomer
The text was updated successfully, but these errors were encountered: