Newman error for package library scripts

Archived topic — this may be out of date.
Newman has been replaced by the Postman CLI, Postman’s official, signed command-line tool. It runs collections as Newman did, and also lints API specs, runs mocks and monitors, and syncs local files with Postman from your terminal, CI/CD pipeline or coding agent.
Working with an AI coding agent? The Postman plugin lets agents in Claude Code, Cursor, Codex and others design, mock, test and ship APIs with Postman.
For current help, see the Postman docs, try the free Postman tools (no account needed), or join us on Discord.

When I tried to run an imported postman collection which contains few test scripts in package library, I’m getting an error as pm.require is not a function in Newman.

Any solution to update the package via external javascript file before running postman collection file:

Hey @spacecraft-technol17 :wave:

Welcome to the Postman Community! :postman:

Newman doesn’t support the Package Library Scripts, you can use the Postman CLI to run these but these are only available for certain plan types.