There are a few package managers for Node.js projects and some of them provide advantages over others. Currently, we use yarn and we face some challenges, that may be solved by migrating to pnpm.
A few years ago we switched projects from npm to yarn and in the near future, we will move to pnpm for several reasons (which will be explained in another blog post). Often we have to adapt the scripts in package.json to use the correct package manager.