in ubuntu
Installation needed
- ssvmup
- wasm-opt
- node-pre-gyp
Errors
// this is the file ssvm_nodejs_starter_lib.js generated by ssvmup build
let vm;
/**
* @param {string} s
* @returns {string}
*/
module.exports.say = function(s) {
if (typeof s === 'object') s = JSON.stringify(s);
return vm.RunString('say', s);
};
const path = require('path').join(__dirname, 'ssvm_nodejs_starter_lib_bg.wasm');
const ssvm = require('ssvm');
vm = new ssvm.VM(path, { args:process.argv, env:process.env, preopens:{'/': __dirname} });
ssvm is a node module? but when installed globally, then run node node/app.js
Error: Cannot find module 'ssvm'
I tried several times, it still failed.
If ssvm is only available from source code/docker. The node module ssvm should be deprecated/deleted.
It's not easy to use it for newbies
in ubuntu
Installation needed
Errors
// this is the file ssvm_nodejs_starter_lib.js generated by ssvmup build
ssvm is a node module? but when installed globally, then run node node/app.js
Error: Cannot find module 'ssvm'I tried several times, it still failed.
If ssvm is only available from source code/docker. The node module ssvm should be deprecated/deleted.
It's not easy to use it for newbies