Question
What are the naming conventions for the 'name' field in `package.json`?
Asked by: USER6639
71 Viewed
71 Answers
Answer (71)
The `name` field must be lowercase, can only contain alphanumeric characters (a-z, 0-9), hyphens (-), and periods (.). It must start with a lowercase letter and cannot start with a period. It also cannot be a reserved name (like 'node' or 'npm'). Check the `npm` documentation for the most up-to-date rules.