Not able to install node@10 on mac M1 chip device
Asked Answered
W

2

6

System

enter image description here

I have a project which requires node@10 to run. I used https://brew.sh to install node@10.

I used the below command to install node@10

brew install --build-from-source node@10

It was not able to install and i got the following error.

./configure: line 3: exec: python: not found

I installed python using brew.

brew install python

The above command installed python3, so i created alias for python

alias python=python3

enter image description here

So, python is working. I again tried brew install --build-from-source node@10 and still getting enter image description here

Wharf answered 28/4, 2022 at 0:52 Comment(0)
P
1

I don't have enough rep to comment so I'll try to phrase this as an answer:

Chances are there is a messed up symlink somewhere

  1. Usually you can use brew info python to troubleshoot your python install with homebrew installs.
  2. Also use which python at the terminal to see the actual path to the python executable.
Prater answered 28/4, 2022 at 0:58 Comment(5)
Output of which python -> python: aliased to python3Wharf
Output of which python3 -> /usr/bin/python3Wharf
Output if brew info python -> gist.github.com/rahul-adpushup/4e567cf0fef4676032151709c2ba505cWharf
i think your issue is because you aliased it instead of setting the pathBevin
Try pyenv: github.com/pyenv/pyenvSocialism
F
0

I had the same issue on MacOS 13.0.1. The only solution worked for me is, downloading node 10.x.x package from https://nodejs.org/en/download/

Fugal answered 23/11, 2022 at 17:56 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.