Please be sure you’ve read the docs and API specs before asking for help. Also, please be sure you’ve searched the forum for your answer before you create a new topic.
Please consider addressing the following when creating your topic:
What have you tried?
What errors did you face (share screenshots)?
Share the details of your efforts (code / search query, workflow json etc.)?
What is the result you are getting and what were you expecting?
I am trying to get postman re-setup (new computer) and I keep getting the following error on any command
“TypeError: Cannot read properties of undefined (reading ‘json’)”
@krigney -I encountered the issue but was able to resolve it by defining the environment..
It looks like an incorrect tenant name has been defined. Also, please ensure that all necessary environment variables are correctly set — some might be missing. Kindly review the script once more to verify. Feel free to ping me on one-to-one chat if needed.
This is the most effective first step for issues like this.
Uninstall Postman Completely:
Crucially, Delete Residual Files: Postman leaves behind user data and cache files. You need to delete these manually to ensure a truly clean install.
Restart Your Computer: This helps clear any lingering processes or file locks.
Go to the Official Postman Website: Open your web browser and navigate to the Postman Downloads page: https://www.postman.com/downloads/
Select Your Operating System: The website should automatically detect your OS, but double-check that the correct version (Windows 64-bit, macOS Intel, macOS Apple Chip, Linux 64-bit, etc.) is highlighted.
Click “Download”: Click the prominent “Download” button for your specific operating system. The installer file will begin downloading to your default downloads folder.
Do NOT use an old installer or a download from a third-party site.
Yes, double check you parameters and if you prefere, try adding console.log to print the environment variables in the pre-req script so that you can verify them.