← Back to issue list

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

View original Launchpad issue

Metadata

Project
snapcraft
Number
#1685551
Type
issue
State
open
Author
~elopio
Labels
plugin
Created
2017-04-22 21:23:05.087993+00:00
Updated
2017-11-17 20:43:51.643902+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

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

No evaluation history available.