box / boxcli

A command line interface for interacting with the Box API.
https://developer.box.com
Apache License 2.0
229 stars 59 forks source link

Windows 11 Compatibility? #344

Closed robertbatchelor closed 2 years ago

robertbatchelor commented 2 years ago

Description of the Issue

I recently moved to W11, and found I cant get the BOX CLI working.

I may be blind, but couldn't find any existing info for Box CLI on W11.

Steps to Reproduce

Install either version of Box CLI on Windows 11

Expected Behavior

Error Message, Including Stack Trace

Error: The platform is windows 10 but the native module could not be found at checkPlatform (C:/Program Files/@boxcli/client/node_modules/node-ms-passport/index.js:59:19) at loadNativeModule (C:/Program Files/@boxcli/client/node_modules/node-ms-passport/index.js:71:16) at Object.<anonymous> (C:/Program Files/@boxcli/client/node_modules/node-ms-passport/index.js:29:25) at Object.<anonymous> (C:/Program Files/@boxcli/client/src/box-command.js:32:7)

Screenshots

image

Versions Used

Box CLI: image Also tried the x86 version on a fresh install

Operating System: image

robertbatchelor commented 2 years ago

Well it looks like this might actually just be related to the latest release in this repo, v3.1.0

I formatted a fresh install of Windows 10 10.0 on a different system, and had the same issue with Box CLI v3.1.0.

Removing and re-installing v3.0.0 eliminated the above errors.

mhagmajer commented 2 years ago

Hello @robertbatchelor, thanks for reporting and including all these details! We are already tracking this internally as SDK-2316. We'll update you with more information as it comes. I'm glad that reverting back to v3.0.0 solved this problem for you!