I tried to install node v12.18.3 in a M1 Mac but keep encountering the following error:
$ asdf install nodejs 12.18.3
Trying to update node-build... ok
To follow progress, use 'tail -f /var/folders/cm/_8l6rmzn5cv9_0_kc5wnz7rr0000gn/T/node-build.20240905183227.94653.log' or pass --verbose
Downloading node-v12.18.3.tar.gz...
-> https://nodejs.org/dist/v12.18.3/node-v12.18.3.tar.gz
WARNING: node-v12.18.3 is past its end of life and is now unsupported.
It no longer receives bug fixes or security updates.
Installing node-v12.18.3...
BUILD FAILED (macOS 14.6.1 using node-build 5.3.10-3-g518209e5)
Inspect or clean up the working tree at /var/folders/cm/_8l6rmzn5cv9_0_kc5wnz7rr0000gn/T/node-build.20240905183227.94653.gIGfif
Results logged to /var/folders/cm/_8l6rmzn5cv9_0_kc5wnz7rr0000gn/T/node-build.20240905183227.94653.log
Last 10 log lines:
/var/folders/cm/_8l6rmzn5cv9_0_kc5wnz7rr0000gn/T/node-build.20240905183227.94653.gIGfif/node-v12.18.3 /var/folders/cm/_8l6rmzn5cv9_0_kc5wnz7rr0000gn/T/node-build.20240905183227.94653.gIGfif ~/workdir/mint/mint-app/admin
No preset version installed for command python2.7
Please install a version by running one of the following:
asdf install python 3.9.2
or add one of the following versions in your config file at
python 2.7.18
Missing or stale config.gypi, please run ./configure
make: *** [config.gypi] Error 1
Current plugins:
$ asdf list
nodejs
No versions installed
python
2.7.18
3.12.5
*3.9.2
What I've did:
Change arch
Tried to change the arch (arch -x86_64 asdf install nodejs 12.18.3), but it doesn't work (getting asdf: Bad CPU type in executable error), which most likely because I didn't install Rosetta in this (which I want to avoid)
Use Python 2.7.18
Tried to change the python version to 2.7.18, giving me the following error:
asdf install nodejs 12.18.3
Trying to update node-build... ok
To follow progress, use 'tail -f /var/folders/cm/_8l6rmzn5cv9_0_kc5wnz7rr0000gn/T/node-build.20240905184213.2711.log' or pass --verbose
Downloading node-v12.18.3.tar.gz...
-> https://nodejs.org/dist/v12.18.3/node-v12.18.3.tar.gz
WARNING: node-v12.18.3 is past its end of life and is now unsupported.
It no longer receives bug fixes or security updates.
Installing node-v12.18.3...
BUILD FAILED (macOS 14.6.1 using node-build 5.3.10-3-g518209e5)
Inspect or clean up the working tree at /var/folders/cm/_8l6rmzn5cv9_0_kc5wnz7rr0000gn/T/node-build.20240905184213.2711.HxaITR
Results logged to /var/folders/cm/_8l6rmzn5cv9_0_kc5wnz7rr0000gn/T/node-build.20240905184213.2711.log
Last 10 log lines:
In file included from ../deps/v8/src/torque/contextual.h:10:
../deps/v8/src/base/macros.h:245:7: warning: builtin has_trivial_copy is deprecated; use is_trivially_copyable instead [-Wdeprecated-builtins]
has_trivial_copy(T) && has_trivial_destructor(T);
^
../deps/v8/src/base/macros.h:245:32: warning: builtin has_trivial_destructor is deprecated; use is_trivially_destructible instead [-Wdeprecated-builtins]
has_trivial_copy(T) && has_trivial_destructor(T);
^
2 warnings generated.
rm 0ef53eb579ade41890dfaf63f578608e4bb50652.intermediate
make: *** [node] Error 2
I tried to install node v12.18.3 in a M1 Mac but keep encountering the following error:
Current plugins:
What I've did:
Change arch Tried to change the arch (
arch -x86_64 asdf install nodejs 12.18.3
), but it doesn't work (gettingasdf: Bad CPU type in executable
error), which most likely because I didn't install Rosetta in this (which I want to avoid)Use Python 2.7.18 Tried to change the python version to 2.7.18, giving me the following error:
WARNING: node-v12.18.3 is past its end of life and is now unsupported. It no longer receives bug fixes or security updates.
Installing node-v12.18.3...
BUILD FAILED (macOS 14.6.1 using node-build 5.3.10-3-g518209e5)
Inspect or clean up the working tree at /var/folders/cm/_8l6rmzn5cv9_0_kc5wnz7rr0000gn/T/node-build.20240905184213.2711.HxaITR Results logged to /var/folders/cm/_8l6rmzn5cv9_0_kc5wnz7rr0000gn/T/node-build.20240905184213.2711.log
Last 10 log lines: In file included from ../deps/v8/src/torque/contextual.h:10: ../deps/v8/src/base/macros.h:245:7: warning: builtin has_trivial_copy is deprecated; use is_trivially_copyable instead [-Wdeprecated-builtins] has_trivial_copy(T) && has_trivial_destructor(T); ^ ../deps/v8/src/base/macros.h:245:32: warning: builtin has_trivial_destructor is deprecated; use is_trivially_destructible instead [-Wdeprecated-builtins] has_trivial_copy(T) && has_trivial_destructor(T); ^ 2 warnings generated. rm 0ef53eb579ade41890dfaf63f578608e4bb50652.intermediate make: *** [node] Error 2