Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

package.json file is invalid #46

Open
pdehaan opened this issue Sep 10, 2013 · 0 comments
Open

package.json file is invalid #46

pdehaan opened this issue Sep 10, 2013 · 0 comments

Comments

@pdehaan
Copy link
Contributor

pdehaan commented Sep 10, 2013

Per http://package-json-validator.com/

I'm seeing the following error when trying to validate the JSONSelect/package.json file:

{
  "valid": false,
  "errors": [
    "Value for field name, JSONSelect does not match format: /^[a-z0-9][a-z0-9\\.\\-_]+$/"
  ],
  "warnings": [
    "Missing recommended field: keywords",
    "Missing recommended field: bugs",
    "Missing recommended field: licenses"
  ],
  "recommendations": [
    "Missing optional field: contributors",
    "Missing optional field: files",
    "Missing optional field: bin",
    "Missing optional field: man",
    "Missing optional field: directories",
    "Missing optional field: config",
    "Missing optional field: bundledDependencies",
    "Missing optional field: optionalDependencies",
    "Missing optional field: engineStrict",
    "Missing optional field: os",
    "Missing optional field: cpu",
    "Missing optional field: preferGlobal",
    "Missing optional field: private",
    "Missing optional field: publishConfig"
  ]
}

I looked into it, and it appears that that package names should be lowercased (as of npm 1.3) [1]. It looks like Isaac is considering relaxing that restriction, but thought I'd post this as a placeholder issue in case we wanted to consider changing this to jsonselect in the future.

[1] https://groups.google.com/forum/#!msg/npm-/LXXgFyLZBPQ/2S-lixuuEwcJ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant