Error running Ngrok

I’m very new to the kali linux. However, i am having trouble running ngrok on my kali linux terminal. When I run the program, i get this error.
ngrok http 3001
Traceback (most recent call last):
File “/usr/local/lib/python3.11/dist-packages/pyngrok/installer.py”, line 101, in install_ngrok
_install_ngrok_zip(ngrok_path, download_path)
File “/usr/local/lib/python3.11/dist-packages/pyngrok/installer.py”, line 117, in _install_ngrok_zip
zip_ref.extractall(os.path.dirname(ngrok_path))
File “/usr/lib/python3.11/zipfile.py”, line 1681, in extractall
self._extract_member(zipinfo, path, pwd)
File “/usr/lib/python3.11/zipfile.py”, line 1735, in _extract_member
open(targetpath, “wb”) as target:
^^^^^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: ‘/usr/local/lib/python3.11/dist-packages/pyngrok/bin/ngrok’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/local/bin/ngrok”, line 8, in
sys.exit(main())
^^^^^^
File “/usr/local/lib/python3.11/dist-packages/pyngrok/ngrok.py”, line 345, in main
run(sys.argv[1:])
File “/usr/local/lib/python3.11/dist-packages/pyngrok/ngrok.py”, line 336, in run
ensure_ngrok_installed(conf.DEFAULT_NGROK_PATH)
File “/usr/local/lib/python3.11/dist-packages/pyngrok/ngrok.py”, line 81, in ensure_ngrok_installed
install_ngrok(ngrok_path)
File “/usr/local/lib/python3.11/dist-packages/pyngrok/installer.py”, line 103, in install_ngrok
raise PyngrokNgrokInstallError(“An error occurred while downloading ngrok from {}: {}”.format(url, e))
pyngrok.exception.PyngrokNgrokInstallError: An error occurred while downloading ngrok from https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip: [Errno 13] Permission denied: ‘/usr/local/lib/python3.11/dist-packages/pyngrok/bin/ngrok’
Can someone tell me what this means.

As a user you cannot, and do not want to, write files into the operating system typically.

Find out how to tell the installer where to put its files.