From 49e7f042f9bdbd5a62d5410c1871b73799963f94 Mon Sep 17 00:00:00 2001 From: gengjiawen Date: Sat, 2 Nov 2019 23:27:48 +0800 Subject: [PATCH] build: add workaround for WSL Signed-off-by: gengjiawen PR-URL: https://github.com/nodejs/node/pull/30221 Fixes: https://github.com/nodejs/node/issues/30189 Reviewed-By: Christian Clauss Reviewed-By: Richard Lau --- BUILDING.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/BUILDING.md b/BUILDING.md index 3a484c42e04d19..0df731b099e5c5 100644 --- a/BUILDING.md +++ b/BUILDING.md @@ -282,6 +282,11 @@ $ ./configure $ make -j4 ``` +If you run into a `No module named 'distutils.spawn'` error when executing +`./configure`, please try `python3 -m pip install --upgrade setuptools` or +`sudo apt install python3-distutils -y`. +For more information, see https://github.com/nodejs/node/issues/30189. + The `-j4` option will cause `make` to run 4 simultaneous compilation jobs which may reduce build time. For more information, see the [GNU Make Documentation](https://www.gnu.org/software/make/manual/html_node/Parallel.html).