TCS - edit client/ files - Yarn install
For the Rover development we use Yarn package manager. The tutorial will guide you through the process of enabling Yarn to build the software internally on the Rover. Although it's not the most convenient way (takes Raspberry Pi capabilities to build), but it's less dependent on your computer workspace.
Update Debian packages of Node.js to include NodeSource (won't work without).
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
Then install latest Node.js
sudo apt-get install nodejs
curl -o- -L https://yarnpkg.com/install.sh | bash
Then reboot the device: power off / power on or
Type for example:
And see if responds.
We're working on /opt/turtlerover/tcs/ folder, so we should link it to Yarn. Type:
yarn add /opt/turtlerover/tcs/
It should read package.json file located in the folder and check for dependencies.