The latest version of npm no longer accepts deprecated commands and the Travis nodeJS build is pulling this command in from somewhere that isn’t the project .travis.yml.
We are having the same issue.
Was hoping that upgrading to Node 20 would get rid of the message, but it is still there.
Would be really nice if someone from Travis could see this as it doesn’t seem possible to override anything in .travis.yml