Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please add Apple Silicon supported node #228

Open
mngrant opened this issue Jan 7, 2021 · 0 comments
Open

Please add Apple Silicon supported node #228

mngrant opened this issue Jan 7, 2021 · 0 comments
Assignees

Comments

@mngrant
Copy link

mngrant commented Jan 7, 2021

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants