I've cloned a reactJs repository and after that, I wanted to run the " npm install " but when I was running it I got Syntax Error about using python
error code:
stack Error: Command failed: /opt/homebrew/bin/python3 -c import sys; print
"%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack File "<string>", line 1
gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack at ChildProcess.exithandler (child_process.js:383:12)
gyp ERR! stack at ChildProcess.emit (events.js:400:28)
gyp ERR! stack at maybeClose (internal/child_process.js:1088:16)
gyp ERR! stack at Socket.<anonymous> (internal/child_process.js:446:11)
gyp ERR! stack at Socket.emit (events.js:400:28)
gyp ERR! stack at Pipe.<anonymous> (net.js:686:12)