I haven't used vanilla npm for years, and it turned out that I had save=false in my global .npmrc
npm
save=false
.npmrc