Skip to content

Instantly share code, notes, and snippets.

@suryart
suryart / README.md
Last active January 24, 2022 09:23
Fixing therubyracer install issue on OS X 12.1 ARM(M1) macbook

If you have received the following error when running gem install therubyracer -v '0.12.3' -- --with-v8-dir=$(brew --prefix v8):

Building native extensions with: '--with-v8-dir=/opt/homebrew/opt/v8' This could take a while... ERROR: Error installing therubyracer: ERROR: Failed to build gem native extension.

current directory: /Users/surya/.rvm/gems/ruby-2.6.6@rails602/gems/therubyracer-0.12.3/ext/v8

/Users/surya/.rvm/rubies/ruby-2.6.6/bin/ruby -I /Users/surya/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0 -r ./siteconf20220124-21151-13m9cq6.rb extconf.rb --with-v8-dir=/opt/homebrew/opt/v8 checking for -lpthread... yes

@suryart
suryart / karma-browserstack-launcher.log
Created July 28, 2022 13:29
Karma BrowserStack launcher for Angular 14 gets stuck in infinite loop.
> angular-14-new@0.0.0 test-ci
> ng test --watch=false --browsers=bs_chrome_win
Node.js version v17.4.0 detected.
Odd numbered Node.js versions will not enter LTS status and should not be used for production. For more information, please see https://nodejs.org/en/about/releases/.
⠋ Generating browser application bundles (phase: setup)...28 07 2022 18:23:42.504:DEBUG [config]: Loading config /Users/surya/tests/angular-14-karma-browserstack-reproduce-hang/karma.conf.js
28 07 2022 18:23:42.511:DEBUG [karma-server]: Final config Config {
LOG_DISABLE: 'OFF',
LOG_ERROR: 'ERROR',
LOG_WARN: 'WARN',