When using yarn with the nodejs plugin, the yarn binary is not in $PATH
Metadata
Current evaluation
The nodejs plugin failed to expose yarn in $PATH, breaking postinstall scripts. Acknowledged as a mistake, the report was closed as stale without a fix.
Suggested action: —
No scores available.
Issue body
I was trying to build a snap for ethereum's mist. It uses yarn as the package manager, but it has an entry in package.json that we don't support:
"postinstall": "cd interface && yarn"
https://github.com/ethereum/mist/blob/develop/package.json#L11
Trying to build this snap will fail with:
error /home/elopio/mist/parts/mist/src/node_modules/Mist: Command failed.
Exit code: 127
Command: sh
Arguments: -c cd interface && yarn
Directory: /home/elopio/mist/parts/mist/src/node_modules/Mist
Output:
sh: 1: yarn: not found
In order to support this use case, during the pull and build, the commands need to be able to execute parts/<name>/bin/yarn.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | The nodejs plugin failed to expose yarn in $PATH, breaking postinstall scripts. Acknowledged as a mistake, the report was closed as stale without a fix. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
98
Complexity:
35
Confidence:
95
Support Request:
15
|
close stale | Nodejs plugin fails to add yarn to PATH during postinstall scripts, causing snap builds to fail. Issue is over 9 years old with no maintainer response. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
98
Complexity:
25
Confidence:
90
Support Request:
10
|
close stale | Nodejs plugin fails to add yarn to $PATH during postinstall scripts, causing snap builds to fail. Issue is over 8 years old with no maintainer interaction or comments. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
98
Complexity:
30
Confidence:
85
Support Request:
10
|
close stale | Nodejs plugin fails to add yarn to PATH during pull/build, causing postinstall scripts to fail. Issue is over 9 years old with no maintainer response or activity. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
98
Complexity:
25
Confidence:
85
Support Request:
10
|
close stale | Nodejs plugin omits yarn from PATH during pull and build phases, breaking postinstall scripts. Open with zero comments and over nine years of inactivity, requiring triage and assignment. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1794727 node plugin doesn't run yarn install during build | snapcraft (launchpad) | open | Nodejs plugin yarn support bug from 8 years ago; the nodejs plugin has been removed and replaced by the npm plugin which only supports npm, so the reported yarn install issue is no longer applicable to the current codebase. |