Yarn: Yarn fails to install 'sharp' but npm don't

Created on 20 Oct 2016  路  3Comments  路  Source: yarnpkg/yarn

Here's a strange thing, I deleted my node_modules folder to test the speed of yarn. The install ran perfectly, but my app crashed with

6:06:17 PM web.1 |      throw err;
6:06:17 PM web.1 |      ^
6:06:17 PM web.1 |  Error: Cannot find module './build/Release/sharp'
6:06:17 PM web.1 |      at Function.Module._resolveFilename (module.js:469:15)

OK, nothing to do with yarn, but strangely, after running npm install everything gets back to normal.

sharp seems to have a pretty complex install process involving external dependencies (see http://sharp.readthedocs.io/en/stable/install/):

libvips and its dependencies are fetched and stored within node_modules/sharp/lib during npm install. This involves an automated HTTPS download of approximately 6.5MB.

It seems to me that yarn doesn't trigger the post install process. Does it?

Most helpful comment

Related to #872.

All 3 comments

It would be better for everyone if you please follow the issue template.

Please mention your node.js, yarn and operating system version.

Related to #872.

dup to 872

Was this page helpful?
0 / 5 - 0 ratings

Related issues

chiedo picture chiedo  路  3Comments

victornoel picture victornoel  路  3Comments

sebmck picture sebmck  路  3Comments

selkhateeb picture selkhateeb  路  3Comments

danez picture danez  路  3Comments