Running Node.js
Overview
Running a script on your local machine using Node.js is very similar to running a script on the davinci platform.
However, there are some differences.
The biggest difference is that the local script is not run within an asynchronous context.
Beacuse of this, some features that you can use in a
script running on the davinci platform, such as the await keyword, can only be called within an async function.
One way to enable these features is to just declare an asynchronous function in your script and then to just run it.
const run = async function(){
const lt = await import('./list.mjs');
...
}
run();