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

Added issues with M1 mac and 'npm install' to README #789

Merged
merged 1 commit into from
Mar 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,17 @@ Once you’ve set the default version of the Ruby run “bundle install” again
bundle install
```

#### Issues with M1 Macs:
This may be an issue with Macbook that are running the M1 chip, but if you are getting this error when running "bundle install":
```
There was an arror parsing 'Gemfile': cannot load such file -- em/pure_ruby. Bundler cannot continue
```
Try running the following commands:
```
gem uninstall eventmachine
gem install eventmachine --platform ruby
```

#### Install NPM packages:

To install npm packages, run the following commands in the same order:
Expand All @@ -85,6 +96,15 @@ npm config set "@fortawesome:registry" https://npm.fontawesome.com/
npm config set "//npm.fontawesome.com/:_authToken" 35502DF3-AEA2-4B2E-9B3E-3C5D1BADEC18
npm install
```
If you are getting errors when running 'npm install', make sure that you are running the version of the node the project supports. You can check the version of node by running:
```
node -v
```
For NIX (Linux, OS X, ...) - Use n, an extremely simple Node version manager that can be installed via npm.
```
npm install -g n # Install n globally
n <version> # Install and use a version of node
```

#### Install Python (Big Sur and up):
On MacOS Big Sur and higher, if you run into: *NPM Error "Can't find Python executable"*
Expand Down Expand Up @@ -251,4 +271,4 @@ Version incompatibilities may occur during setup. For reference, please try agai
- bundler 1.17.3
- node 13.11.0
- npm 6.13.7
- python 3.10.6
- python 3.10.6