boxcli icon indicating copy to clipboard operation
boxcli copied to clipboard

Please add Apple Silicon supported node

Open mngrant opened this issue 3 years ago • 0 comments

Apple PKG v2.8.0 0a84f3e Installs, but box won't execute

The Apple PKG installs natively (testing on M1 MacBook Air without Rosetta 2 installed), but the version of node included results in a Bad CPU

/usr/local/bin/box: line 44: /usr/local/lib/@box/cli/bin/node: Bad CPU type in executable

Possible Workaround

Install node with arm/Apple Silicon support manually and symlink in box install directory

$ cd /usr/local/lib/@box/cli/bin
$ mv node node-included
$ ln -s /usr/local/bin/node node

Resolution requested

Distribute two packages or a single universal installer that determines which version of node to install.




Please Note I have not fully tested functionality of my initial workaround, but initial tests are working with the basic symlink of an arm compiled node install.

% box
Official command line interface for the Box API

VERSION
  @box/cli/2.8.0 darwin-arm64 node-v15.4.0

USAGE
  $ box [COMMAND]

COMMANDS
  autocomplete               Display autocomplete installation instructions
  collaboration-whitelist    List collaboration whitelist entries
  collaborations             Manage collaborations
  collections                List your collections
  comments                   Manage comments on files
  configure                  Configure the Box CLI
  device-pins                List all the device pins for your enterprise
  events                     Get events
  files                      Manage files
  folders                    Manage folders
  groups                     List all groups
  help                       Display help for the Box CLI
  legal-hold-policies        List legal hold policies
  metadata-cascade-policies  List the metadata cascade policies on a folder
  metadata-templates         Get all metadata templates in your Enterprise
  oss                        Print a list of open-source licensed packages used in the Box CLI
  recent-items               List information about files accessed in the past 90 days up to a 1000 items
  request                    Manually specify a Box API request
  retention-policies         List all retention policies for your enterprise
  search                     Search for files and folders in your Enterprise
  shared-links               Manage shared links
  storage-policies           List storage policies
  tasks                      Manage tasks
  terms-of-service           List terms of services for your enterprise
  tokens                     Get a token. Returns the service account token by default
  trash                      List all items in trash
  users                      List all Box users
  watermarking               Apply a watermark on an item
  web-links                  Manage web links
  webhooks                   List all webhooks

mngrant avatar Jan 07 '21 20:01 mngrant