Branch v15.x has been tested and compiles for M1 Macs. Read the detailed instructions here.
The only prerequisite is Xcode Command Line Tools - can be installed with
Full install procedure is as simple as:
git clone https://github.com/nodejs/node.git cd node ./configure make -j4 sudo make install
Please note that only branch v15.x has been tested.