Installing node.js and cncjs on an Orange Pi Zero H2+

Based on instructions found here!
And here!

Armbian is based on Debian/Ubuntu. For cncjs it is recommended to use Nodejs 6.x so start by adding the Nodejs 6.x repository:
[sourcecode language=”text”]curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -[/sourcecode]

Install Node.js using:
[sourcecode language=”text”]sudo apt-get install nodejs[/sourcecode]

If installed correctly then “node -v” should display v6.11.3

The only way I managed to get cncjs installed was to run:
[sourcecode language=”text”]sudo npm install –unsafe-perm -g cncjs[/sourcecode]

To start at boot I added the following to /etc/rc.local before the exit 0:
[sourcecode language=”text”]sudo /usr/lib/node_modules/cncjs/bin/cnc[/sourcecode]

Yay!

Leave a Reply

Your email address will not be published. Required fields are marked *