Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node-gyp failing when module built with yarn in official docker image #1135

Closed
mattkime opened this issue Mar 3, 2017 · 1 comment
Closed

Comments

@mattkime
Copy link

mattkime commented Mar 3, 2017

https://github.com/mattkime/get-cursor-position-fail/

Running docker build . from the repo directory results in -

[4/4] Building fresh packages...
error /home/mup/node_modules/get-cursor-position: Command failed.
Exit code: 127
Command: sh
Arguments: -c node-gyp rebuild
Directory: /home/mup/node_modules/get-cursor-position
Output:
sh: 1: node-gyp: not found

Modify Dockerfile to use npm instead and it works fine.

The official docker images, verified in both v7.6 and v7.7.1. Both use yarn v0.21.3


I have no idea if this is a yarn, docker node image, or node-gyp problem

@bnoordhuis
Copy link
Member

See nodejs/docker-node#346 and yarnpkg/yarn#2266, it's a known yarn issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants