I'm using Package Managers Workflow on Alfred 4.
But it won't show the latest versions in the search result.
Here is how to make it display them like so:
Open the workflow directory
And then, open code/Npm.php
file with editor.
Edit lines starting at line 29 as following:
$this->cache->w->result(
$this->id,
$this->makeArg($name, $p->links->npm, "{$p->name}: {$p->version}"),
"{$name}@{$p->version}", // Display version
$p->description,
"icon-cache/{$this->id}.png"
);
That's it!