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

Yarn fails to install 'sharp' but npm don't #1310

Closed
ocolot opened this issue Oct 20, 2016 · 3 comments
Closed

Yarn fails to install 'sharp' but npm don't #1310

ocolot opened this issue Oct 20, 2016 · 3 comments

Comments

@ocolot
Copy link

ocolot commented Oct 20, 2016

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

module.js:471
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?

@torifat
Copy link
Member

torifat commented Oct 20, 2016

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

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

@jdalton
Copy link
Contributor

jdalton commented Oct 20, 2016

Related to #872.

@samccone
Copy link
Member

dup to 872

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

4 participants