workshopper / how-to-npm

A module to teach you how to module.
https://www.npmjs.com/package/how-to-npm
ISC License
1.09k stars 212 forks source link

"npm install <package-name>" better than "npm install <module-name>" #140

Open cuppar opened 5 years ago

cuppar commented 5 years ago

If the folder can be published to https://registry.npmjs.com, it must be contain a package.json file, so it must be a "package". If the package has neither index.js file nor the "main" field in package.json, then it is not a module. So, I think the "npm install " better than "npm install ".