I am getting a bit confused here.
I have an MVC
5 project, I want to use the npm
for managing my javascript packages.
I installed npm
from nuget
and here i am stuck, I cant find the commandline console window or anything like that.
All the info i see online is about node projects.
Can someone direct me to a relevant tutorial.
Using visual studio 2013, MVC 5.
Follow the below steps to install Syncfusion JavaScript npm package via command prompt in the required web application location. Open the project's location in command prompt window. Run the installation command for npm.
js with ASP.NET MVC. yes, That's work great. This link also helpful for the routing and url rewrite in iisnode.
Visual Studio makes it easy to interact with npm and issue npm commands through the UI or directly. If you're unfamiliar with npm and want to learn more, go to the npm documentation. Visual Studio integration with npm is different depending on your project type.
Well regardless of the project, if you want to use npm
on Windows, this is what you need:
node -v
(should print a version number).npm -v
and see if it's installed (should be).Now in the context of an ASP.NET MVC project. The newer versions of Visual Studio (I believe 2015) support npm
- you can just open the package.json
and add dependencies (it will download them behind the scenes). In case you're using an old version, you can simply open a command prompt, navigate to your project and use npm install
from there.
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