dkg-engine
dkg-engine copied to clipboard
Update npm, node.js and build tools to latest stable versions
Tomorrow's release (v6 beta.1.30) will introduce some breaking changes, so all node runners should make sure they upgrade npm and node.js to the latest stable versions (node.js v16.14.1 and npm 8.5.0). Please follow these steps :
Update npm :
sudo npm install npm -g
Update node.js :
npm cache clean -f
npm install -g n
sudo n stable
Install latest build tools :
apt install build-essential -y
Now edit the otnode.service file to be compatible with the latest node.js version :
systemctl edit --full otnode.service
replace this line :
ExecStart=/usr/bin/node /root/ot-node/index.js
with this line :
ExecStart=/usr/local/bin/node /root/ot-node/index.js
Finally, you can restart your node :
systemctl restart otnode.service