NPM requires a unique name field and a version number before publishing. There are more requirements if you intend to publish the package to the NPM registry to distribute to others. You're not required to use any of them, and the only true requirement is that the file is valid JSON. With one important exception, all fields in a package.json are optional. The important part is generating a package.json so you can begin to install dependencies. It's okay to accept the defaults if you don't know what to put for a field. The package.json fields you'll be prompted for are name, version, description, main, test command, git repository, keywords, author, and license. Either accept the defaults suggested by npm, or type a new value and hit enter. Fill out the prompts for fields in your package.json.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |