Install this version:
emerge -a =sys-apps/pnpm-11.4.0
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =sys-apps/pnpm-11.4.0
Or alternatively:
emerge --autounmask-write -a =sys-apps/pnpm-11.4.0
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Fast, disk space efficient package manager"
HOMEPAGE="https://pnpm.io"
SRC_URI="https://registry.npmjs.org/${PN}/-/${P}.tgz"
S="${WORKDIR}/package"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
DEPEND="net-libs/nodejs"
RDEPEND="${DEPEND}"
src_compile() {
:
}
src_install(){
local install_dir="/usr/$(get_libdir)/node_modules/${PN}" path shebang
insinto "${install_dir}"
doins -r .
dosym "../$(get_libdir)/node_modules/${PN}/bin/pnpm.cjs" "/usr/bin/pnpm"
dosym "../$(get_libdir)/node_modules/${PN}/bin/pnpx.cjs" "/usr/bin/pnpx"
fperms +x "/usr/bin/pnpm" "/usr/bin/pnpx"
fperms +x "${install_dir}/bin/pnpm.cjs" "${install_dir}/bin/pnpx.cjs"
fperms +x "${install_dir}/dist/node-gyp-bin/node-gyp"
fperms +x "${install_dir}/dist/node_modules/node-gyp/bin/node-gyp.js"
}
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | pnpm-11.4.0.tgz | 4260842 bytes | https://registry.npmjs.org/pnpm/-/pnpm-11.4.0.tgz |