Closed raymundovr closed 1 year ago
Hi 👋
I am following the Node.js tutorial found here https://developers.thegreenwebfoundation.org/co2js/tutorials/getting-started-node/
Unfortunately I cannot get to run the code:
❯ node index.js node:internal/modules/cjs/loader:1078 throw err; ^ Error: Cannot find module './data/average-intensities-2021.min.js' Require stack: - /Users/r/Experimentos/co2js/node_modules/@tgwf/co2/dist/cjs/index-node.js [...]
I can notice that such file average-intensities-2021.min.js does not exist
average-intensities-2021.min.js
/Users/r/Experimentos/co2js/node_modules/@tgwf/co2/dist/cjs/data .rw-r--r-- 4.7k r 20 Apr 07:04 average-intensities.min.js .rw-r--r-- 6.1k r 20 Apr 07:04 average-intensities.min.js.map .rw-r--r-- 4.6k r 20 Apr 07:04 marginal-intensities-2021.min.js .rw-r--r-- 6.5k r 20 Apr 07:04 marginal-intensities-2021.min.js.map
I guess that the intendend file is average-intensities.min.js.
average-intensities.min.js
This is fix in release 0.13.1 Thank you for spotting this.
@fershad thanks for the quick reply!
Hi 👋
I am following the Node.js tutorial found here https://developers.thegreenwebfoundation.org/co2js/tutorials/getting-started-node/
Unfortunately I cannot get to run the code:
I can notice that such file
average-intensities-2021.min.js
does not existI guess that the intendend file is
average-intensities.min.js
.