Skip to content

Instantly share code, notes, and snippets.

@UlisesGascon
Created November 5, 2019 19:39
Show Gist options
  • Save UlisesGascon/6eb5e1bac47d6f34adcf90de0b3b223c to your computer and use it in GitHub Desktop.
Save UlisesGascon/6eb5e1bac47d6f34adcf90de0b3b223c to your computer and use it in GitHub Desktop.
Compile nodejs in MacOS

Compile nodejs in MacOS

Code manage

  • Download: git clone https://github.com/nodejs/node.git
  • Update: git pull upstream master

Build Nodejs

  • Configure: ./configure
  • Compile: make -j4

Linter

  • Linter: make lint

Test coverage

  • Prepare: ./configure --coverage
  • Build: make coverage
  • Check: coverage/index.htm

Run tests

  • FULL Tests: make -j4 test
  • Partial tests
  • single test file (example test/parallel/test-stream2-transform.js): python tools/test.py test/parallel/test-stream2-transform.js
  • tests for a given subsystem (example child-process): python tools/test.py -J --mode=release child-process
  • More options: python tools/test.py --help

Fix: Install XCODE XLI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment