Troubleshoot Installing Dependencies

Triplex uses npm to source third-party artifacts, however you need a package manager to have them installed into your project.

Triplex doesn't (currently) come with an out-of-the-box package manager so you need to install one yourself.

pnpm

Install using a standalone script.

See pnpm's installation docs for more information.

Windows

Using PowerShell:

iwr https://get.pnpm.io/install.ps1 -useb | iex

macOS

curl -fsSL https://get.pnpm.io/install.sh | sh -

npm

Install together with Node.js. The easiest way is to use an installer, find one on the Node.js download page.

See npm's installation docs for more information.

Yarn

Install together with Node.js. The easiest way is to use an installer, find one on the Node.js download page. Afterwards use corepack to enable yarn:

corepack enable
corepack prepare yarn@stable --activate

See Yarn's installation docs for more information.

Was this page helpful?