yarn rebuild (Feature request)

Created on 23 Jan 2018  路  2Comments  路  Source: yarnpkg/yarn

Npm has npm rebuild to rebuild compiled packages (eg, node-sass). we need this in yarn for, among other reasons, the need to rebuild packages for cross-platform environments.

2069 was closed prematurely and calls to reopen it have been ignored. it was closed after being erroneously marked as a duplicate. the use case and solution for #756 are quite different, and does not solve the problem.

triaged

Most helpful comment

yarn rebuild is still needed for using workspaces. npm rebuild --update-binary will only work for the top-level dependencies and not workspace deps.

All 2 comments

I'd still love to see this functionality added.

For anyone who runs across this in the meantime, npm rebuild --update-binary appears to be a viable workaround that won't mess with your lock files. /ht @fugroup

yarn rebuild is still needed for using workspaces. npm rebuild --update-binary will only work for the top-level dependencies and not workspace deps.

Was this page helpful?
0 / 5 - 0 ratings