madskristensen/JavaScriptPrettier

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

XMarshall72 opened this issue · 2 comments

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.

I observed the same, VS 16.8.0

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