Can an npm package specify that npx/npm init should always use the latest version?

311 views Asked by At

I have a package (let's call it create-foo) that my users are supposed to always run using npm init foo. The problem is that if the user has previously run the command it never updates it. I know that the user can run npm init foo@latest but is there a way to change the default behavior for a package? i.e. is there a way for a package to specify that it wants to always prefer the remote version to be checked?

0

There are 0 answers