简体   繁体   English

npm在VS2017中没有显示

[英]npm not showing in VS2017

In Visual Studio 2017, when I right click on Dependencies in the solution, I see Manage NuGet Packages but where is npm? 在Visual Studio 2017中,当我右键单击解决方案中的Dependencies时,我会看到Manage NuGet Packages但是npm在哪里? Shouldn't there be a visual manager for npm like I use with NuGet all the time? 不应该有像我一直使用NuGet的npm视觉管理器吗?

here you go. 干得好。

  1. On your project do a right click 在您的项目上右键单击
  2. Select Add New Item 选择添加新项
  3. Select the NPM Configuration File, this will add a Package.json to your project, it will look like this: 选择NPM配置文件,这会将Package.json添加到您的项目中,它将如下所示:

 { "version": "1.0.0", "name": "asp.net", "private": true, "devDependencies": { } } 

  1. then you can type your dependencies like so: 那么你可以像这样输入你的依赖:

 { "version": "1.0.0", "name": "asp.net", "private": true, "devDependencies": { "gulp": "3.9.1", "gulp-bootlint": "0.8.1" } } 

安装包没有官方但它的东西

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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