To publish public repositories with a free npm account, you initially need to publish the module with access of public. One way to do this is to set the config for npm to read in packages.json as follows:
"publishConfig": {
"access": "public"
},
you can also use...