mirror of
https://github.com/GH05TCREW/pentestagent.git
synced 2026-03-07 14:23:20 +00:00
Add nodejs check
This commit is contained in:
2
main.py
2
main.py
@@ -21,7 +21,7 @@ ASCII_TITLE = f"""
|
||||
{Fore.WHITE}(| | '. (_/| .-. | \ | | | |.-._) \ | | || |`-'| | . '.' | .--' | | {Style.RESET_ALL}
|
||||
{Fore.WHITE} | '--' | | | | | `' '-' '\ / | | (_' '--'\ | |\ \ | `---.| ,'. | {Style.RESET_ALL}
|
||||
{Fore.WHITE} `------' `--' `--' `-----' `-----' `--' `-----' `--' '--' `------''--' '--' {Style.RESET_ALL}
|
||||
{Fore.RED}====================== GHOSTCREW ======================{Style.RESET_ALL}
|
||||
{Fore.WHITE}====================== GHOSTCREW ======================{Style.RESET_ALL}
|
||||
"""
|
||||
|
||||
# Import Agent-related modules
|
||||
|
||||
@@ -12,6 +12,15 @@ if errorlevel 1 (
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
:: Check if Node.js is installed
|
||||
node --version >nul 2>&1
|
||||
if errorlevel 1 (
|
||||
echo Node.js is not installed, please install Node.js first
|
||||
echo Most MCP servers require Node.js to function properly
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
:: Check and install dependencies from requirements.txt
|
||||
echo Installing dependencies from requirements.txt...
|
||||
pip install -r requirements.txt
|
||||
|
||||
Reference in New Issue
Block a user