ioi-installer.sh

As of version 1.*, the ioi-installer uses the Node Package Manager to install, load and track versions/dependencies. https://www.npmjs.com/

Since npm is now a dependency of the installer, the installer installs a local copy of node/npm for its own use. Another job of the installer is to manager the user’s data directory, $IOI_DATA.

The script:

  • Currently, recognizes agents and loads them via launchd.

  • Command line tools are symlinked to the binary directory.

This script is used by the default-runtime-manager.


File Locations

IOI

$HOME/.ioi

npm --prefix

$IOI

IOI_CACHE

$IOI/~cache

IOI_BIN

$IOI/bin → $HOME/.ioi/node_modules/.bin

PKG

$IOI/node_modules/<@SCOPE>/<PKG>

IOI_DATA

$HOME/Library/IOI

PKG_DATA

$IOI_DATA/<@SCOPE>/<PKG>