dkg-engine icon indicating copy to clipboard operation
dkg-engine copied to clipboard

Update npm, node.js and build tools to latest stable versions

Open zeroxbt opened this issue 3 years ago • 0 comments

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

zeroxbt avatar Mar 16 '22 10:03 zeroxbt