madskristensen / JavaScriptPrettier

A Visual Studio extension
Other
157 stars 30 forks source link

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

Open XMarshall72 opened 4 years ago

XMarshall72 commented 4 years ago

Installed product versions

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.

hgirma commented 3 years ago

I observed the same, VS 16.8.0

hgirma commented 3 years ago

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