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.
If you need to edit any file located in /client/ folder, you need to rebuild the client before the changes take place.
1. Connect Turtle to the Internet
pageConnect to the Internet2. Install git
page[FAQ] Software 1013. Install Node.js
Update Debian packages of Node.js to include NodeSource (won't work without).
Then install latest Node.js
4. Install Yarn
Little disclaimer: Yarn is a package managing software allowing to cut all the track file relations and distinguish development files and production files.
You're working on the development files (/client/src/) and during your work building lighter production files (/client/dist/). This allows to track all the unnecessary files with no relations.
Less intuitive, but a lot more efficient!
More info on Yarn: https://yarnpkg.com/en/docs/cli/
Run:
Then reboot the device: power off / power on or
5. Check if Yarn works
Type for example:
And see if responds.
6. Setup workspace directory
We're working on /opt/turtlerover/tcs/ folder, so we should link it to Yarn. Type:
It should read package.json file located in the folder and check for dependencies.
Last updated