Skip to content
mise ERROR Failed to install yarn
rudi-jom98
OP

10 hours ago

Hello, i try to deploy my frontend, the changes don't have anything related to dependency, but i encounter this issue.

copy package-lock.json, package.json, yarn.lock

32ms

yarn install --frozen-lockfile

94ms

mise by @jdx – installing 1 tool

mise ✗ [email protected] 6ms · failed: npm:yarn has a checksum and no aube lock, so it installs a local archive that provenance cannot be verified for; lock the tool, or turn off npm.provenance and the paranoid provenance category

mise ████████████████ 1/1 · installed 0 tools · 1 failed in 8ms

mise ERROR Failed to install npm:[email protected]: npm:yarn has a checksum and no aube lock, so it installs a local archive that provenance cannot be verified for; lock the tool, or turn off npm.provenance and the paranoid provenance category

mise ERROR Version: 2026.11.12 linux-x64 (2026-11-21)

mise ERROR Run with --verbose or MISE_VERBOSE=1 for more information

Build Failed: build daemon returned an error < failed to solve: process "yarn install --frozen-lockfile" did not complete successfully: exit code: 1 >

Anyone ever encounter this issue? Any suggestion? Thanks

Solved$20 Bounty

Pinned Solution

rudi-jom98
OP

6 hours ago

The issue happen because this hash in the package.json

"packageManager": "[email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652...."

Removing the +sha.... work fine. Reverting the changes and add this 2 variable fix it

MISE_NPM_PROVENANCE=false

MISE_PARANOID=0

4 Replies

Status changed to Awaiting Railway Response Railway • about 10 hours ago


Railway
BOT

10 hours ago

This thread has been opened as a bounty so the community can help solve it.

Status changed to Open Railway • about 10 hours ago


Seems like you're also copying a package-lock.json. Try using npm instead.


Set the variable MISE_NPM_PROVENANCE=0 in your service to turn off the provenance check to get your app to deploy for now. This happens because yarn classic doesn't publish provenance, so every yarn 1 build now fails, even with no dependency changes. It's recommended that you switch to npm instead in this case.


Anonymous

6 hours ago

One important catch on top of the replies above — under mise 2026.11.12, setting only MISE_NPM_PROVENANCE=0 (or false) can still fail if the paranoid provenance category is active, because paranoid provenance overrides npm.provenance and forces cryptographic verification back on (that is why the error explicitly states: "turn off npm.provenance and the paranoid provenance category").

1. Immediate unblock (if you need to stay on Yarn 1 right now)

Add both environment variables in your Railway service Variables tab and redeploy:

MISE_NPM_PROVENANCE=false
MISE_PARANOID=0

(If you have a mise.toml in the repo instead of service variables, set npm.provenance = false and paranoid = false under [settings].)

2. Permanent fix (recommended — eliminates the root cause)

Notice your build log shows both lockfiles being copied:

copy package-lock.json, package.json, yarn.lock

When both package-lock.json and yarn.lock are present, Railpack detects yarn.lock and invokes mise to install npm:[email protected]. Yarn 1 Classic does not publish Sigstore/npm provenance attestations and has no aube lockfile, so mise 2026.11.12 rejects the local archive.

  • If your project actually uses npm: Remove yarn.lock from your Git repository (git rm yarn.lock), commit, and push so only package-lock.json remains. Railpack will run npm ci directly and skip installing npm:[email protected] via mise completely.
  • If your project requires Yarn: Remove package-lock.json so there is only one lockfile, keep the two MISE_* variables above as a short-term workaround, or upgrade to a modern Yarn version (4.x via "packageManager": "yarn@4...") or switch to a minimal custom Dockerfile to avoid relying on mise's npm:[email protected] installer.

rudi-jom98
OP

6 hours ago

The issue happen because this hash in the package.json

"packageManager": "[email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652...."

Removing the +sha.... work fine. Reverting the changes and add this 2 variable fix it

MISE_NPM_PROVENANCE=false

MISE_PARANOID=0


Status changed to Solved rudi-jom98 • about 6 hours ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...