Getting Started
Pear Runtime can be installed via npm.
Since npm (or equivalent package manager) is needed to install application dependencies this guide will walk through installing pear with npm.
Build with Pear - Episode 01: Developing with Pear
Requirements
Pear runs on Windows, Mac and Linux.
Linux requires the libatomic library which can be installed using:
Debian/Ubuntu:
sudo apt install libatomic1RHEL/CentOS:
sudo yum install libatomicFedora:
sudo dnf install libatomicAlpine Linux:
sudo apk add libatomicArch Linux:
sudo pacman -S libatomic_opsThe pear CLI can be installed from npm, which comes with node.
The npm package manager can also be used to install application dependencies later on.
On MacOS and Linux, we recommend installing node using nvm
On Windows we recommend installing node with nvs.
The Pear Runtime does not rely on
node,nodeis only needed to install and run thenpmpackage manager.
Setup
To install Pear run the following command:
npm i -g pearTo complete the setup, run the pear command.
pearIf a Pear application, such as Keet, is already installed then the Pear platform is already available. In this case, running pear should show help output.
If not, the first run of pear will fetch the platform from peers, after which running pear again should output help information.
To check that Pear is fully working, try the following command:
pear run pear://keetPear loads applications from peers, so this command should open Keet whether or not it was downloaded and installed beforehand.
Next
Last updated