I just downloaded the Node.js tools for Visual Studio and I can't find a way to open a Console window from inside VS.
It's useful to trigger npm
commands like install
, run build
...
I know I could do it from the outside but I miss how easy it is in WebStorm, for instance.
To launch the REPL (Node shell), open command prompt (in Windows) or terminal (in Mac or UNIX/Linux) and type node as shown below. It will change the prompt to > in Windows and MAC. You can now test pretty much any Node.
To open the console in Visual Studio, go to the main menu and select Tools > NuGet Package Manager > Package Manager Console command.
To open it, use any of these methods: Use the Ctrl + ` keyboard shortcut. Use the View | Toggle Integrated Terminal menu command. From the Command Palette ( Ctrl + Shift + P ), use the View:Toggle Integrated Terminal command.
You can run npm from the interactive node.js window using the .npm
command.
Or you can right-click on the node.js project and chose "Open Command Prompt Here" to open a console window to run npm.
Or you can right click on the npm node in the project and use the gui tool for managing packages.
The NTVS team has a video where they talk about the npm support:
And there's also a page on the npm support in the NTVS documentation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With