When using yarn with the nodejs plugin, the yarn binary is not in $PATH

Bug #1685551 reported by Leo Arias
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Sergio Schvezov

Bug Description

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"


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
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.

Tags: plugin
Revision history for this message
Sergio Schvezov (sergiusens) wrote :

It was like that on purpose, it was clearly a mistake.

Changed in snapcraft:
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → Sergio Schvezov (sergiusens)
milestone: none → 2.35
Changed in snapcraft:
milestone: 2.35 → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.