TL;DR Publish a temporary version to occupy the package
npm install pkg-pub -g
pkgp
Checking if a package name is taken before publishing a npm package is important. However, npm info and npm view commands do not work for private packages. In such cases, developers may find out that the package name is already taken when attempting to publish it. The best way to confirm availability is by directly publishing the package.
Any updates or better methods for searching private packages will be appreciated. Thank you!