HomeFreeBSD

security/bitwarden-cli: fix fetch and build

Description

security/bitwarden-cli: fix fetch and build

npm version 10 fails with the following error when prefetching node
modules (this only happens with poudriere):

npm ERR! code EEXIST
npm ERR! syscall open
npm ERR! path /wrkdirs/usr/ports/security/bitwarden-cli/work/.npm/_cacache/tmp/e61947a0
npm ERR! errno -17
npm ERR! EEXIST: file already exists, open '/wrkdirs/usr/ports/security/bitwarden-cli/work/.npm/_cacache/tmp/e61947a0'
npm ERR! File exists: /wrkdirs/usr/ports/security/bitwarden-cli/work/.npm/_cacache/tmp/e61947a0
npm ERR! Remove the existing file and try again, or run npm
npm ERR! with --force to overwrite files recklessly.

As a temporary workaround, install and use npm version 9 for
prefetching node modules.

Reported by: Miroslav Lachman <000.fbsd@quip.cz> (via private mail)
MFH: 2023Q4

(cherry picked from commit 64cacbc564767d1a53e0a3390d28e1d6fb0aa320)

Details

Provenance
tagattieAuthored on Nov 6 2023, 2:23 PM
Parents
R11:df4a5af9e35d: www/*chromium: sysctl(2) requires sys/types.h to be included
Branches
Unknown
Tags
Unknown