This workaround won't be needed anymore once #333759 is merged, which fixes the node_modules copying behavior in npm-install-hooks.