How do I distribute packages with NPM
Go to NPM official website to register your account, after registration, log in
npm login
Publish the package and upload it to the NPM package server
npm publish
If the following error message is displayed, the package name is the same and you need to change the package name
Change the package name and publish again, with the ‘+’ symbol indicating successful publication
Check the following on your NPM home page to see that the react-docx-file package is already in the list
Update a published package
If you change something and want to redistribute it, the NPM version patch command automatically increments the original version by 1, actually changing the version value in the package.json file
redistribution
You can see there are already two versions
Delete the package
Delete a version of NPM unpublish package name @version number
NPM unpublish package name –force