Downloads:

8,303

Downloads of v 7.18.0:

97

Last Update:

05 Dec 2022

Package Maintainer(s):

Software Author(s):

  • Contributors of pnpm

Tags:

pnpm node npm

pnpm

  • 1
  • 2
  • 3

7.18.0 | Updated: 05 Dec 2022

Downloads:

8,303

Downloads of v 7.18.0:

97

Maintainer(s):

Software Author(s):

  • Contributors of pnpm

Tags:

pnpm node npm

  • 1
  • 2
  • 3
pnpm 7.18.0

  • 1
  • 2
  • 3

Some Checks Have Failed or Are Not Yet Complete

Not All Tests Have Passed


Validation Testing Passed


Verification Testing Passed

Details

Scan Testing Resulted in Flagged as a Note:

At least one file within this package has greater than 0 detections, but less than 5

Details
Learn More

Deployment Method: Individual Install, Upgrade, & Uninstall

To install pnpm, run the following command from the command line or from PowerShell:

>

To upgrade pnpm, run the following command from the command line or from PowerShell:

>

To uninstall pnpm, run the following command from the command line or from PowerShell:

>

Deployment Method:

📝 NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Enter Your Internal Repository Url

(this should look similar to https://community.chocolatey.org/api/v2/)


2. Setup Your Environment

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

2. Get the package into your environment

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://community.chocolatey.org/api/v2/. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Copy Your Script

choco upgrade pnpm -y --source="'INTERNAL REPO URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:


choco upgrade pnpm -y --source="'INTERNAL REPO URL'" 
$exitCode = $LASTEXITCODE

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0
}

Exit $exitCode

- name: Install pnpm
  win_chocolatey:
    name: pnpm
    version: '7.18.0'
    source: INTERNAL REPO URL
    state: present

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.


chocolatey_package 'pnpm' do
  action    :install
  source   'INTERNAL REPO URL'
  version  '7.18.0'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


cChocoPackageInstaller pnpm
{
    Name     = "pnpm"
    Version  = "7.18.0"
    Source   = "INTERNAL REPO URL"
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'pnpm':
  ensure   => '7.18.0',
  provider => 'chocolatey',
  source   => 'INTERNAL REPO URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


4. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

Private CDN cached downloads available for licensed customers. Never experience 404 breakages again! Learn more...

This package was approved as a trusted package on 05 Dec 2022.

Description

Background

pnpm uses a content-addressable filesystem to store all files from all module directories on a disk.
When using npm or Yarn, if you have 100 projects using lodash, you will have 100 copies of lodash on disk.
With pnpm, lodash will be stored in a content-addressable storage, so:

  1. If you depend on different versions of lodash, only the files that differ are added to the store.
    If lodash has 100 files, and a new version has a change only in one of those files,
    pnpm update will only add 1 new file to the storage.
  2. All the files are saved in a single place on the disk. When packages are installed, their files are linked
    from that single place consuming no additional disk space. Linking is performed using either hard-links or reflinks (copy-on-write).

As a result, you save gigabytes of space on your disk and you have a lot faster installations!
If you'd like more details about the unique node_modules structure that pnpm creates and
why it works fine with the Node.js ecosystem, read this small article: Flat node_modules is not the only way.

Getting Started


update.ps1
Import-Module AU

$latestRelease = "https://api.github.com/repos/pnpm/pnpm/releases/latest"

function global:au_BeforeUpdate {
    $Latest.Checksum = Get-RemoteChecksum $Latest.URL -Algorithm sha1
}

function global:au_SearchReplace {
    @{
        'tools\chocolateyInstall.ps1' = @{
            "(?i)(^\s*checksum\s*=\s*)('.*')" = "`$1'$($Latest.Checksum)'"
        }
    }
}

function global:au_GetLatest {
    $packageJson = Invoke-WebRequest -UseBasicParsing -Uri $latestRelease | ConvertFrom-Json
    $packageVersion = $packageJson.name -Replace "^v"
    $packageAsset = $packageJson.assets | Where-Object { $_.name -eq "pnpm-win-x64.exe" }

    @{
        Version       = $packageVersion
        RemoteVersion = $packageVersion
        URL           = $packageAsset.browser_download_url
    }
}

update -ChecksumFor none
tools\ChocolateyInstall.ps1
$ErrorActionPreference = 'Stop'

$packageName = $Env:chocolateyPackageName
$packagePnpmVersion = [version]([regex]'^\d+(\.\d+){2}').Match($Env:chocolateyPackageVersion).Value
$scriptRoot = Split-Path -parent $MyInvocation.MyCommand.Definition

$architecture = 'x64'
$platform = 'win'
$pnpmExecutableFileName = "$packageName.exe"

$pnpmCommand = Get-Command -Name $packageName -ErrorAction SilentlyContinue
if ($null -ne $pnpmCommand -and (-not $env:ChocolateyForce))
{
    $currentPnpmVersion = [version](pnpm --version)
    if ($packagePnpmVersion -le $currentPnpmVersion)
    {
        Write-Host "This pnpm package version '$packagePnpmVersion' is lower or equal to currently installed pnpm version '$currentPnpmVersion'. Use the --force switch to install version $packagePnpmVersion anyway."
        return
    }
}

if ([System.Environment]::Is64BitOperatingSystem -eq $false) {
	Write-Error "pnpm currently only provides binaries for x64 architectures on Windows are available. Try to install pnpm using npm."
	return
}

$pnpmExecutablePath = "$scriptRoot\$pnpmExecutableFileName"
$pnpmExecutableUrl = "https://github.com/pnpm/pnpm/releases/download/v$packagePnpmVersion/pnpm-$platform-$architecture.exe"
$packageWebFileArgs = @{
    packageName     = $packageName
    fileFullPath    = $pnpmExecutablePath
    url             = $pnpmExecutableUrl
    checksumType    = 'sha1'
    checksum        = '7f31033358d976c521848503ebe2530543e42c9b'
}
Get-ChocolateyWebFile @packageWebFileArgs

Log in or click on link to see number of positives.

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Add to Builder Version Downloads Last Updated Status
pnpm 7.17.1 382 Tuesday, November 29, 2022 Approved
pnpm 7.17.0 126 Saturday, November 26, 2022 Approved
pnpm 7.14.1 1466 Monday, October 31, 2022 Approved
pnpm 7.14.0 333 Monday, October 24, 2022 Approved
pnpm 7.13.6 55 Friday, October 21, 2022 Approved
pnpm 7.13.5 432 Monday, October 17, 2022 Approved
pnpm 7.13.4 433 Tuesday, October 11, 2022 Approved
pnpm 7.13.3 84 Monday, October 10, 2022 Approved
pnpm 7.13.2 320 Thursday, October 6, 2022 Approved
pnpm 7.13.1 135 Wednesday, October 5, 2022 Approved
pnpm 7.13.0 139 Monday, October 3, 2022 Approved
pnpm 7.12.2 194 Friday, September 23, 2022 Approved
pnpm 7.12.1 98 Tuesday, September 20, 2022 Approved
pnpm 7.12.0 51 Monday, September 19, 2022 Approved
pnpm 7.11.0 215 Wednesday, September 7, 2022 Approved
pnpm 7.10.0 73 Monday, September 5, 2022 Approved
pnpm 7.9.5 166 Thursday, August 25, 2022 Approved
pnpm 7.9.4 65 Tuesday, August 23, 2022 Approved
pnpm 7.9.3 110 Thursday, August 18, 2022 Approved
pnpm 7.9.1 143 Thursday, August 11, 2022 Approved
pnpm 7.9.0 88 Monday, August 8, 2022 Approved
pnpm 7.8.0 143 Monday, August 1, 2022 Approved
pnpm 7.6.0 186 Friday, July 22, 2022 Approved
pnpm 7.5.2 199 Thursday, July 14, 2022 Approved
pnpm 7.5.1 88 Tuesday, July 12, 2022 Approved
pnpm 7.5.0 119 Friday, July 8, 2022 Approved
pnpm 7.4.1 419 Thursday, June 30, 2022 Approved
pnpm 7.4.0 300 Friday, June 24, 2022 Approved
pnpm 7.3.0 20 Tuesday, June 28, 2022 Approved
pnpm 7.2.1 143 Monday, June 13, 2022 Approved
pnpm 7.1.2 174 Thursday, May 19, 2022 Approved
pnpm 7.1.0 72 Monday, May 16, 2022 Approved
pnpm 7.0.0 138 Monday, May 2, 2022 Approved
pnpm 6.32.24 25 Friday, June 24, 2022 Approved
pnpm 6.32.22 22 Monday, June 13, 2022 Approved
pnpm 6.32.15 22 Thursday, May 19, 2022 Approved
pnpm 6.32.13 20 Monday, May 16, 2022 Approved
pnpm 6.32.11 29 Monday, May 2, 2022 Approved
pnpm 6.32.4 232 Monday, April 4, 2022 Approved
pnpm 6.32.1 183 Wednesday, February 23, 2022 Approved
pnpm 6.31.0 50 Thursday, February 17, 2022 Approved
pnpm 6.30.0 93 Monday, February 7, 2022 Approved
pnpm 6.29.1 60 Thursday, February 3, 2022 Approved
pnpm 6.25.1 36 Wednesday, January 12, 2022 Approved
pnpm 6.24.2 108 Wednesday, December 22, 2021 Approved
pnpm 6.23.6 204 Tuesday, December 21, 2021 Approved

This package has no dependencies.

Discussion for the pnpm Package

Ground Rules:

  • This discussion is only about pnpm and the pnpm package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or pnpm, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus