-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Feature: make npm view for current project easier #6390
Comments
|
Oh "publishConfig": {
"registry": "https://npm.pkg.github.com"
} npm v . version
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@rkeu%2fserverless-health-check - Not found
npm ERR! 404
npm ERR! 404 '@rkeu/serverless-health-check@*' is not in this registry. |
That's because it's a publish config, not a registry config - if you want it to do that, you should also have an |
Thanks @ljharb - it's a shame though, I was trying to avoid having to use an |
Currently using
npm view
will return information about the project associated with the current working directory. This is very useful, but to use any of the extended options of the command (like[<field>[.subfield]...]
) requires supplying a package name.Feature - consider a shorthand for the local context, e.g.
npm view - version # uses the local package.json to work out the registry and latest published version
The text was updated successfully, but these errors were encountered: