

You can shell out to the command prompt much easier if you install the Visual Studio Productivity Power Tools. What you will need to do instead is that you’ll need to shell out to the command prompt, change to the project directory, and then type your npm commands. We don’t have a node project, so this will never work. It took me several tries before it finally dawned on me that it wasn’t just asking “What project do you want to install this in?” It was asking “What Node project do you want to install this in?” Please specify a valid Node.js project or project directory. This works fine when you want to install something globally, but when you want to install something with the –save or –save-dev option, you will get the error message: There are several places where I got stuck.įirst, I tried to install gulp using the Node Interactive Window (CTRL-K,N).

To use Gulp, you will need to install Gulp using the Node Package Manager (npm).

To do this, navigate to “Tools” > “Options.” In the resulting dialog, find the “Projects and Solutions” > “External Web Tools” leaf in the tree control and then add the directory to your newly installed Node.js installation to the top of the list of paths to external tools. Once you have Node.js installed, the next thing you will need to do is that you’ll need to configure Visual Studio to use the version you installed instead of the version it installed. So, what you want to do is to install the most recent of version from the Node.js site manually. The problem is, it isn’t the most recent version. If you did that, you already have Node.js installed. I’m assuming that you’ve already installed Visual Studio 2015. Although, at this point, it isn’t as straightforward as most other things in Visual Studio. Would it be possible to wire node.js and Gulp with ASP.NET in my existing web project? But because I’m using a regular HTML page to serve up the shell for my single page application, using the regular ASP.NET on the fly compression wasn’t going to work for this application.īut there are a lot of tools in the Node.js space that will work. As I’ve gotten to the end of my current project, I found myself needing to implement cache busting and while I am at its compression. As I’ve written before, I’m using Angular a lot recently to write the client side of my web applications.
