Skip to content

Commit

Permalink
Hack a fix to node-gyp. :-(
Browse files Browse the repository at this point in the history
  • Loading branch information
chmac committed Jun 9, 2024
1 parent f135bdd commit 6405f80
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ Installing mmmagic expects `python` to be a valid binary, which it is not. This

- `ln -s "$(brew --prefix)/bin/python"{3,}`

If you're running on apple silicon, you also need to run this command:

- `sed -i '' 's/"rU"/"r"/' ~/.nvm/versions/node/v16.20.2/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py`

You might also need to run the linux equivalent of that if you see an error about "ValueError: invalid mode: 'rU' while trying to load binding.gyp". The linux equivalent removes the first set of `''`.

## Building for production

See `deploy/docker`. Run `dockerBuild.sh`. Then `docker push` the latest tags
Expand Down

0 comments on commit 6405f80

Please sign in to comment.