Skip to content

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

Open

Description

@nedtwigg

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...

Activity

  1. changed the title [-]prettier support for existing node.js packages[/-] [+]prettier support for already-installed node.js packages[/+] on Aug 25, 2020
  2. milgner commented on Mar 7, 2023

    @milgner

    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 prettier@2.8.4.
    > 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions