简体   繁体   中英

Visual Studio 2015 is integrated with npm, Bower, Grunt, and Gulp, do I need to install these separately?

I currently have installed Visual Studio 2015 Update 3, and ASP.NET and Web Tools 2015.1.

In this version Visual Studio appears to be integrated with npm, Bower, Grunt, and Gulp. For example;

  • The add file dialog displays configuration/code files for the above applications.
  • Right clicking on my project shows 'Manage Bower Packages'.
  • Task Runner Explorer recognises gruntfile.js.

Does this mean I do not need to install the applications myself?

Do I already have the application because Visual Studio has them packaged?

Should I install each application individually anyway? Do I have to do this or is it just for an optional benefit? For example:

  • Install Node.js to get NPM.
  • Then use Node.js in command line to get Bower, Grunt, and Gulp.

Further investigations with Grunt.

I setup a very simple Grunt build script and this worked when executed from within Visual Studio.

  • I did not install Node.js seperately, eg if I can open a console window input npm I get 'npm' is not recognized .
  • Nor do I use npm to install Grunt globally eg npm install -g grunt-cli .

So I'm guessing all the required elements for Grunt are provided within Visual Studio.

在此处输入图片说明


Further investigations with Gulp.

Basically the same test as with Grunt, also works for Gulp. I can concatenate files without needing to; install Node.js seperately, or install Gulp globally using npm install --global gulp-cli .

So I'm guessing all the required elements for Gulp are also provided within Visual Studio.

It looks like Visual Studio comes packaged with everything required already so no extra installs are necessary.

You can find the files here, C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Web\\External .

Add npm to the PATH to use globally.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM