Skip to content

prettier support for already-installed node.js packages #675

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

Open
nedtwigg opened this issue Aug 25, 2020 · 1 comment
Open

prettier support for already-installed node.js packages #675

nedtwigg opened this issue Aug 25, 2020 · 1 comment

Comments

@nedtwigg
Copy link
Member

For projects which are already using gradle to manage node.js and install deps with package.json, it would be nice if our prettier config could hook into that. Maybe if it had an arg where you passed the node executable, and another for passing package-lock.json for caching, and it was on you (somehow) to make sure that the dependencies were wired correctly. Getting the ergonomics right is key, and also difficult...

@nedtwigg nedtwigg changed the title prettier support for existing node.js packages prettier support for already-installed node.js packages Aug 25, 2020
@milgner
Copy link

milgner commented Mar 7, 2023

I just stumbled upon this when looking for a way to deal with

> npm ERR! code ETARGET
> npm ERR! notarget No matching version found for [email protected].
> npm ERR! notarget In most cases you or one of your dependencies are requesting
> npm ERR! notarget a package version that doesn't exist.

when trying to run spotless.

Which I don't understand, especially since that exact version is already installed:

$ prettier --version
2.8.4

I see that this issue has been referenced a couple of times but I gather there aren't any plans to implement it?

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

No branches or pull requests

2 participants