Roots Discourse

Windows-build-tools: The platform "linux" is incompatible with this module

Got this error today from one Trellis project:
error windows-build-tools@5.2.2: The platform "linux" is incompatible with this module.

It occurs on Trellis deployment:

TASK [deploy : Install npm dependencies] **************************************************************************************
System info:
  Ansible 2.7.12; Linux
  Trellis Head

I’ve tried updating Trellis - same error
I’ve tried reinstalling Windows Build Tools - same error

I’m not sure what to do next. Perhaps an incompatible Node package was installed…

Any ideas?

Nevermind. Somehow windows-build-tools was added to package.json in the sage theme. I simply removed it and ran yarn install, then committed the code.

Problem solved.