Running any of the jiff examples gives me the following error. As I am not really familiar with node, I have no idea why this error arises and how to fix it. I'd be very grateful for help :)
root@964978ccb2bf:~/jiff# npm run-script test-demo -- demos/mult3
> jiff-mpc@0.0.1 test-demo /root/jiff
> ./demos/run-test.sh "demos/mult3"
Server logs at logs/mult3.log
/root/jiff/demos/mult3/server.js:11
require('../../lib/jiff-server').make_jiff(http, { logs:true });
^
TypeError: require(...).make_jiff is not a function
at Object.<anonymous> (/root/jiff/demos/mult3/server.js:11:34)
at Module._compile (internal/modules/cjs/loader.js:701:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
at Module.load (internal/modules/cjs/loader.js:600:32)
at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
at Function.Module._load (internal/modules/cjs/loader.js:531:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:754:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
Test
1) Exhaustive
0 passing (116ms)
1 failing
1) Test
Exhaustive:
TypeError: jiff.make_jiff is not a function
at Object.exports.connect (/root/jiff/demos/mult3/mpc.js:16:27)
at Context.<anonymous> (/root/jiff/demos/mult3/test.js:130:11)
at callFnAsync (/root/jiff/node_modules/mocha/lib/runnable.js:377:21)
at Test.Runnable.run (/root/jiff/node_modules/mocha/lib/runnable.js:324:7)
at Runner.runTest (/root/jiff/node_modules/mocha/lib/runner.js:442:10)
at /root/jiff/node_modules/mocha/lib/runner.js:560:12
at next (/root/jiff/node_modules/mocha/lib/runner.js:356:14)
at /root/jiff/node_modules/mocha/lib/runner.js:366:7
at next (/root/jiff/node_modules/mocha/lib/runner.js:290:14)
at Immediate._onImmediate (/root/jiff/node_modules/mocha/lib/runner.js:334:5)
at runCallback (timers.js:705:18)
at tryOnImmediate (timers.js:676:5)
at processImmediate (timers.js:658:5)
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! jiff-mpc@0.0.1 test-demo: `./demos/run-test.sh "demos/mult3"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the jiff-mpc@0.0.1 test-demo script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-05-26T18_50_37_333Z-debug.log
Running any of the jiff examples gives me the following error. As I am not really familiar with node, I have no idea why this error arises and how to fix it. I'd be very grateful for help :)