What if npm publish node_modules won't be uploaded?

after uploading to npm, it is installed in the global environment, but node_modules is not uploaded. You cannot install dependencies globally after global installation.

Mar.12,2021
Of course,

publishing does not need to be uploaded, so if you rely on this system, you may not be able to run (in fact, you install the package you rely on will not upload node_modules ).
however, the installation will install the dependencies declared in package.json .


change the git ignore file

Menu