generated from un-ts/lib-boilerplate
-
-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Hi folks,
I had an issue when installing Jest v30 with logs shown below. The context is that my company employs an internal npm registry with proper authentication from env vars in project-wide .npmrc.
However, nabapi-postinstall script cannot install the platform-specific unrs-resolver as I believe due to auth token not being utilized.
Logs
info build - npm error code 1
info build - npm error path /home/vsts/work/1/s/node_modules/unrs-resolver
info build - npm error command failed
info build - npm error command sh -c napi-postinstall unrs-resolver 1.9.0 check
info build - npm error [[email protected]] Trying to install package "@unrs/resolver-binding-linux-x64-gnu" using npm
info build - npm error [[email protected]] Failed to install package "@unrs/resolver-binding-linux-x64-gnu" using npm Command failed: npm install --loglevel=error --prefer-offline --no-audit --progress=false @unrs/[email protected]
info build - npm error npm error code E401
info build - npm error npm error Incorrect or missing password.
info build - npm error npm error If you were trying to login, change your password, create an
info build - npm error npm error authentication token or enable two-factor authentication then
info build - npm error npm error that means you likely typed your password in incorrectly.
info build - npm error npm error Please try again, or recover your password at:
info build - npm error npm error https://www.npmjs.com/forgot
info build - npm error npm error
info build - npm error npm error If you were doing some other operation then your saved credentials are
info build - npm error npm error probably out of date. To correct this please try logging in again with:
info build - npm error npm error npm login
info build - npm error npm error A complete log of this run can be found in: /home/app/.npm/_logs/2025-06-20T08_22_43_084Z-debug-0.log
info build - npm error
info build - npm error [[email protected]] Trying to download "[https://internal.npm.repositories.cloud/artifactory/api/npm/build.releases.npm/@unrs/resolver-binding-linux-x64-gnu/-/resolver-binding-linux-x64-gnu-1.9.0.tgz"](https://internal.npm.repositories.cloud/artifactory/api/npm/build.releases.npm/@unrs/resolver-binding-linux-x64-gnu/-/resolver-binding-linux-x64-gnu-1.9.0.tgz%22)
info build - npm error [[email protected]] Failed to download "[https://internal.npm.repositories.cloud/artifactory/api/npm/build.releases.npm/@unrs/resolver-binding-linux-x64-gnu/-/resolver-binding-linux-x64-gnu-1.9.0.tgz"](https://internal.npm.repositories.cloud/artifactory/api/npm/build.releases.npm/@unrs/resolver-binding-linux-x64-gnu/-/resolver-binding-linux-x64-gnu-1.9.0.tgz%22) Server responded with 401
info build - npm error /home/vsts/work/1/s/node_modules/napi-postinstall/lib/index.js:233
info build - npm error throw new Error((0, helpers_js_1.errorMessage)(`Failed to install package "${pkg}"`, (0, helpers_js_1.getErrorMessage)(err)));
info build - npm error ^
info build - npm error
info build - npm error Error: [[email protected]] Failed to install package "@unrs/resolver-binding-linux-x64-gnu": Server responded with 401
info build - npm error at checkAndPreparePackage (/home/vsts/work/1/s/node_modules/napi-postinstall/lib/index.js:233:27)
info build - npm error at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
info build - npm error
info build - npm error Node.js v22.12.0
YGuyomar, ct-mwong and koolshams
Metadata
Metadata
Assignees
Labels
No labels