ainblockchain / ain-blockchain

Official Javascript implementation of AI Network Blockchain.
https://www.ainetwork.ai/
MIT License
67 stars 27 forks source link

Upgrade node.js version #683

Closed liayoo closed 2 years ago

liayoo commented 2 years ago

We should support/upgrade to node.js v14 or later. The LTS is 16.13.0 as of writing, and we seem to only support 12.22.x.

An error log when I try to run start_servers_afan_local.sh with v14.17.4:

2021-11-12T04:41:40.255Z [tracker-8080] error: uncaughtException: The module '/Users/liayoo/comcom/ain-blockchain/node_modules/diskusage/build/Release/diskusage.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 93. This version of Node.js requires
NODE_MODULE_VERSION 72. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
shyun-comcom commented 2 years ago

Tests (integration, unit) were completed in node version 16.13.1.

minsulee2 commented 2 years ago

We now support this on Github actions! (v12, 14, and 16)