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:

curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -

Install Node.js using:

sudo apt-get install nodejs

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

The only way I managed to get cncjs installed was to run:

sudo npm install --unsafe-perm -g cncjs

To start at boot I added the following to /etc/rc.local before the exit 0:

sudo /usr/lib/node_modules/cncjs/bin/cnc

Yay!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s