docker-node: Yarn's bundled node-gyp broken

The current version of yarn still has a pre-existing issue with the pre-bundled version of node-gyp related to https://github.com/yarnpkg/yarn/issues/2266

A temporary fix relates to adding:

RUN yarn global add node-gyp

To our Dockerfile.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 9
  • Comments: 22 (9 by maintainers)

Most upvoted comments

This is fixed in the next version of Yarn (currently only available as an RC, but there should be a stable release soon)

It is indeed weird. I isolated the problem

This works:

FROM node:7.6

RUN npm install bcrypt@0.8.7

This doesn’t:

FROM node:7.6

RUN yarn add bcrypt@0.8.7