Just realized what was the problem. The error message was not the user friendly.I didn't have git installed!
In my defense, I never used node before.
Note: the following error appears in several versions of nodejs. I tried downgrading to 10.0.1 using nvm but the same problem persists.
After trying to install, I get many errors related to deprecation. The problems are related to compiling canvas.
npm install probmods/webppl-viz
npm WARN deprecated bo...@2.10.1: This version has been deprecated in accordance with the hapi support policy (
hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (
hapi.im/commercial).
npm WARN deprecated coffee...@1.3.3: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
npm WARN deprecated cor...@2.4.1: core-js@<2.6.8 is no longer maintained. Please, upgrade to core-js@3 or at least to actual version of core-js@2.
npm WARN deprecated cryp...@2.0.5: This version has been deprecated in accordance with the hapi support policy (
hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (
hapi.im/commercial).
npm WARN deprecated domelem...@1.3.0: update to domelem...@1.3.1
npm WARN deprecated cor...@1.2.7: core-js@<2.6.8 is no longer maintained. Please, upgrade to core-js@3 or at least to actual version of core-js@2.
npm WARN deprecated mini...@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated fsev...@1.1.1: Way too old
npm WARN deprecated grace...@1.2.3: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN deprecated mini...@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated ha...@3.1.3: This module moved to @hapi/hawk. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
npm WARN deprecated ho...@2.16.3: This version has been deprecated in accordance with the hapi support policy (
hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (
hapi.im/commercial).
npm WARN deprecated is-my-js...@2.16.0: catastrophic backtracking in regexes could potentially lead to REDOS attack, upgrade to 2.17.2 as soon as possible
npm WARN deprecated sn...@1.0.9: This module moved to @hapi/sntp. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
npm WARN deprecated topo...@1.6.27: Use topojson-client, topojson-server or topojson-simplify directly.
> can...@1.6.4 install /home/rui/.webppl/node_modules/webppl-viz/node_modules/canvas
> node-gyp rebuild
make: Entering directory '/home/rui/.webppl/node_modules/webppl-viz/node_modules/canvas/build'
SOLINK_MODULE(target) Release/obj.target/canvas-postbuild.node
COPY Release/canvas-postbuild.node
CXX(target) Release/obj.target/canvas/src/Canvas.o
In file included from ../../nan/nan.h:190:0,
from ../src/Canvas.h:22,
from ../src/Canvas.cc:7:
../../nan/nan_maybe_43_inl.h: In function ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’:
../../nan/nan_maybe_43_inl.h:112:15: error: ‘class v8::Object’ has no member named ‘ForceSet’
return obj->ForceSet(isolate->GetCurrentContext(), key, value, attribs);