Can't seem to get Cocos 3.1 to create new project from Console

Please answer these questions to help fix this issue:
What’s the issue? Cant create new project
What’s the engine version? Cocos2d-x-3.1 on Latest Xcode and Mac OS
How to reproduce it? Here is the snapshot and error at the bottom:

Setting up cocos2d-x…
->Check environment variable COCOS_CONSOLE_ROOT
->Find environment variable COCOS_CONSOLE_ROOT…
->COCOS_CONSOLE_ROOT is found : /Applications/Development/cocos2d-x-3.1/tools/cocos2d-console/bin

->Configuration for Android platform only, you can also skip and manually edit “/Users/laptoprd/.bash_profile”

->Check environment variable NDK_ROOT
->Find environment variable NDK_ROOT…
->NDK_ROOT not found

->Find command ndk-build in system…
->Command ndk-build not found

->Please enter the path of NDK_ROOT (or press Enter to skip):
->Check environment variable ANDROID_SDK_ROOT
->Find environment variable ANDROID_SDK_ROOT…
->ANDROID_SDK_ROOT not found

->Find command android in system…
->Command android not found

->Please enter the path of ANDROID_SDK_ROOT (or press Enter to skip):
->Check environment variable ANT_ROOT
->Find environment variable ANT_ROOT…
->ANT_ROOT not found

->Find command ant in system…
->Command ant not found

->Please enter the path of ANT_ROOT (or press Enter to skip):

Please execute command: “source /Users/laptoprd/.bash_profile” to make added system variables take effect

Adms-MacBook-Pro:cocos2d-x-3.1 laptoprd$ source /users/laptoprd/.bash_profile
Adms-MacBook-Pro:cocos2d-x-3.1 laptoprd$ python ./setup.py

Setting up cocos2d-x…
->Check environment variable COCOS_CONSOLE_ROOT
->Find environment variable COCOS_CONSOLE_ROOT…
->COCOS_CONSOLE_ROOT is found : /Applications/Development/cocos2d-x-3.1/tools/cocos2d-console/bin

->Configuration for Android platform only, you can also skip and manually edit “/Users/laptoprd/.bash_profile”

->Check environment variable NDK_ROOT
->Find environment variable NDK_ROOT…
->NDK_ROOT not found

->Find command ndk-build in system…
->Command ndk-build not found

->Please enter the path of NDK_ROOT (or press Enter to skip):
->Check environment variable ANDROID_SDK_ROOT
->Find environment variable ANDROID_SDK_ROOT…
->ANDROID_SDK_ROOT not found

->Find command android in system…
->Command android not found

->Please enter the path of ANDROID_SDK_ROOT (or press Enter to skip):
->Check environment variable ANT_ROOT
->Find environment variable ANT_ROOT…
->ANT_ROOT not found

->Find command ant in system…
->Command ant not found

->Please enter the path of ANT_ROOT (or press Enter to skip):

Please execute command: “source /Users/laptoprd/.bash_profile” to make added system variables take effect

Adms-MacBook-Pro:cocos2d-x-3.1 laptoprd$ cocos new TutorialV3CPP -p learning.laptoprd.tutorialv3cpp -l cpp -d /Users/laptoprd/Desktop/Games
-bash: /Applications/Development/cocos2d-x-3.1/tools/cocos2d-console/bin/cocos: /bin/sh: bad interpreter: Operation not permitted
Adms-MacBook-Pro:cocos2d-x-3.1 laptoprd$ python cocos new TutorialV3CPP -p learning.laptoprd.tutorialv3cpp -l cpp -d /Users/laptoprd/Desktop/Games
/usr/bin/python: can’t find ‘main’ module in ‘cocos’
Adms-MacBook-Pro:cocos2d-x-3.1 laptoprd$
Adms-MacBook-Pro:cocos2d-x-3.1 laptoprd$

I have the same problem with 3.4

Same in 3.8.1

:frowning: can someone help topic ?

when execute : cocos
cocos2d-x-3.13/tools/cocos2d-console/bin/cocos: /bin/bash: bad interpreter: Operation not permitted

i try:
Apples-MacBook-Pro:~ Apple$ csrutil status
System Integrity Protection status: disabled.