Skip to content

Disabled Menu : "Make Prettier (installing npm modules)" #30

Open

Description

@XMarshall72

Installed product versions

  • Visual Studio Community 2017 ver: 15.9.8
  • JavaScript_Prettier_v2.1.47

Description

After installing from VS Tools->Extensions, I am getting on the right click menu for JS Files - Disabled menu : "Make Prettier (installing npm modules)"
Same thing happening when I am installing [JavaScript_Prettier_v2.1.47] directly by downloading from Visual Studio marketplace.
Pls advise what to do...

Steps to recreate

  1. Install JavaScript_Prettier from VS Tools->Extensions or download the installer from Visual Studio marketplace.
  2. Run Visual Studio and open a JavaScript file in the editor.
  3. Right click on the editor, to see the menus.

Current behavior

Seeing menu option (Disabled) : "Make Prettier (installing npm modules)".

Expected behavior

This menu option should be enabled for formatting the JS files.

Activity

  1. hgirma commented on Nov 12, 2020

    @hgirma

    I observed the same, VS 16.8.0

  2. hgirma commented on Nov 14, 2020

    @hgirma

    Get the latest nodejs, which will install npm along with it, restart VS and it will work afterward.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions