Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

title pnpm
description A reference page for the pnpm resource
sidebar
label
pnpm

import {Aside} from "@astrojs/starlight/components";

The pnpm resource is responsible for installing, configuring and destroying pnpm. Using the globalEnvNodeVersion the pnpm resource is able to install a global version of NodeJS using the pnpm env use --global command.

The `globalEnvNodeVersion` parameter may not work if Node was already installed using some other means (like nvm).

Parameters:

  • version: (string) The version of pnpm to install (defaults to latest).

  • globalEnvNodeVersion: (string) Set the global node version. Corresponds to pnpm env --global use

Example usage:

[
  {
    "type":  "pnpm",
    "globalEnvNodeVersion": "20"
  }
]

In this example, pnpm will be installed and then using the command pnpm env --global use, Codify will install NodeJs version 20 onto the system.