You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Sergei. Which versions of nodejs and nvm/npm shoud I use?
Using only a single sample as input , I can get the ogv-dating pipeline to run to near completion (80%). The errors that I get relates to some node modules (things that I had to install such as commander, pretty-data etc). Once I installed all of those I get the error pasted below :
I am out of my depth here.According to Google and Stackoverflow this has something to do with nvm. I installed different versions of nvm. If I use 12.0.0. and 13.0.0 I could install commander (my nvm install command did not work when using the LTS version) Should I change something in the compute-distance js script? Should I use a different version of nodejs? Thanks in advance. /home/ayssel/ogv-dating/scripts/compute-distance.js:7 const csvParse = require("d3").csvParse; ^ Error [ERR_REQUIRE_ESM]: require() of ES Module /home/ayssel/node_modules/d3/src/index.js from /home/ayssel/ogv-dating/scripts/compute-distance.js not supported. Instead change the require of index.js in /home/ayssel/ogv-dating/scripts/compute-distance.js to a dynamic import() which is available in all CommonJS modules. at Object.<anonymous> (/home/ayssel/ogv-dating/scripts/compute-distance.js:7:18) { code: 'ERR_REQUIRE_ESM' }
The text was updated successfully, but these errors were encountered:
Hi Sergei. Which versions of nodejs and nvm/npm shoud I use?
Using only a single sample as input , I can get the ogv-dating pipeline to run to near completion (80%). The errors that I get relates to some node modules (things that I had to install such as commander, pretty-data etc). Once I installed all of those I get the error pasted below :
I am out of my depth here.According to Google and Stackoverflow this has something to do with nvm. I installed different versions of nvm. If I use 12.0.0. and 13.0.0 I could install commander (my nvm install command did not work when using the LTS version) Should I change something in the compute-distance js script? Should I use a different version of nodejs? Thanks in advance.
/home/ayssel/ogv-dating/scripts/compute-distance.js:7 const csvParse = require("d3").csvParse; ^ Error [ERR_REQUIRE_ESM]: require() of ES Module /home/ayssel/node_modules/d3/src/index.js from /home/ayssel/ogv-dating/scripts/compute-distance.js not supported. Instead change the require of index.js in /home/ayssel/ogv-dating/scripts/compute-distance.js to a dynamic import() which is available in all CommonJS modules. at Object.<anonymous> (/home/ayssel/ogv-dating/scripts/compute-distance.js:7:18) { code: 'ERR_REQUIRE_ESM' }
The text was updated successfully, but these errors were encountered: