Error when install mediasoup

125 error [1097/1324] Compiling C++ object subprojects/abseil-cpp-20211102.0/libabsl_strings.a.p/absl_strings_internal_cord_rep_btree.cc.o
125 error ninja: build stopped: subcommand failed.
125 error NOTICE: You are using Python 3.6 which is EOL. Starting with v0.62.0, Meson will require Python 3.7 or newer
125 error make: Leaving directory `/home/albayanvs/public_html/example/node_modules/mediasoup/worker’
126 error Usage:
126 error /bin/python3 -m pip install [options] [package-index-options] …
126 error /bin/python3 -m pip install [options] -r [package-index-options] …
126 error /bin/python3 -m pip install [options] [-e] …
126 error /bin/python3 -m pip install [options] [-e] …
126 error /bin/python3 -m pip install [options] <archive url/path> …
126 error
126 error no such option: --system
126 error The directory ‘/root/.cache/pip/http’ or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.
126 error The directory ‘/root/.cache/pip’ or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.
126 error WARNING: The directory ‘/root/.cache/pip’ or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo’s -H flag.
126 error Directory does not contain a valid build tree:
126 error /home/albayanvs/public_html/example/node_modules/mediasoup/worker/out/Release/build
126 error make: *** [mediasoup-worker] Error 1
127 verbose exit 1
128 timing npm Completed in 54343ms
129 verbose unfinished npm timer reify 1662621985620
130 verbose unfinished npm timer reify:build 1662621987173
131 verbose unfinished npm timer build 1662621987173
132 verbose unfinished npm timer build:deps 1662621987173
133 verbose unfinished npm timer build:run:postinstall 1662621987177
134 verbose unfinished npm timer build:run:postinstall:node_modules/mediasoup 1662621987178
135 verbose code 1
136 error A complete log of this run can be found in:
136 error /root/.npm/_logs/2022-09-08T07_26_25_501Z-debug-0.log

Read the logs rather than just throwing them here, please. They are clear.

python --version
Python 3.8.12

Kindly resolve the permission related issues mentioned in the logs and then try again fresh.