Skip to content
This repository has been archived by the owner on Sep 11, 2021. It is now read-only.

Cannot install windows-build-tools (Ubuntu for Windows) #235

Closed
MarkKocherovsky opened this issue Jan 20, 2021 · 1 comment
Closed

Cannot install windows-build-tools (Ubuntu for Windows) #235

MarkKocherovsky opened this issue Jan 20, 2021 · 1 comment

Comments

@MarkKocherovsky
Copy link

MarkKocherovsky commented Jan 20, 2021

I am trying to install windows build tools using npm install --global --production windows-build-tools, and Ubuntu is consistently returning an EBADPLATFORM error.

I am using Windows 10, Ubuntu for Windows 20.04.1, NodeJS version 15.6.0, and npm version 7.4.0

The error log is below:

npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for windows-build-tools@5.2.2: wanted {"os":"win32"} (current: {"os":"linux","arch":"x64"})
npm ERR! notsup Valid OS:    win32
npm ERR! notsup Valid Arch:  undefined
npm ERR! notsup Actual OS:   linux
npm ERR! notsup Actual Arch: x64

npm ERR! A complete log of this run can be found in:
npm ERR!     LOG_PATH
@jacobq
Copy link
Collaborator

jacobq commented Jan 20, 2021

Erroring with EBADPLATFORM is exactly the intended behavior of this package when it is run on platforms other than Windows. (Linux running on Windows via WSL, VMs, etc. is not Windows, does not need this, and is incompatible with this.)
#56 (comment)

@jacobq jacobq closed this as completed Jan 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants