Installing node.js Modules
In trying to install all of the software to run Clank, I've gotten to the point where I need to install the various node.js modules. All of "express", "serialport", and "ws" worked just fine, but when I run "npm init esm", the installation is slightly different, and I have to hit return multiple times, then type "yes" and return to finish it. After doing that and running "node clank", however, it tells me that the "esm" module cannot be found. I've tried doing a couple of different things, including running "npm install esm" instead of "init", which seems to solve that problem, but then as soon as I try again, I get a different error message:
ReferenceError: TextDecoder is not defined at Object. (/mnt/c/Users/jbc19/Documents/Clank/clank-lz-controller/tool/core/ts.js:180:15) at Generator.next () at Object. (/mnt/c/Users/jbc19/Documents/Clank/clank-lz-controller/tool/core/vPort.js:1) at Generator.next () at Object. (/mnt/c/Users/jbc19/Documents/Clank/clank-lz-controller/tool/core/osap.js:15:343) at Generator.next ()
Any ideas on what I can do? I'm available to video chat all day to work through this, then I can hopefully be of more help to other students. Thanks!