关于VS2015,nmp,ASP.NET5的虚假排队 [英] Dummy quetion about VS2015, nmp, ASP.NET5

查看:117
本文介绍了关于VS2015,nmp,ASP.NET5的虚假排队的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在尝试学习/玩VS2015和ASP.NET5

我创建了一个新的ASP.NET5 Web项目(非空,所以它很友好工程)。



在该页面上 https:/ /github.com/RyanCavanaugh/jsx-intro#reusable-components [ ^ ]我被告知安装反应由一些神秘的命令npm install -g bower....bower install react jquery



首先我的DOS命令行无法识别npm,进一步如何确保它安装在正确的目录中?

是不是有某种visual studio命令扩展名?

Hi,
I am trying to learn / play with VS2015 and ASP.NET5
I created a new ASP.NET5 Web project (non empty, so it kind of works).

On that page https://github.com/RyanCavanaugh/jsx-intro#reusable-components[^] I am told to install react by some arcane commmand "npm install -g bower".... "bower install react jquery"

First my DOS command line doesn't recognize "npm", further how do I make sure it installs in the right directory?
Isn't there some kind of visual studio command extension?

推荐答案

它正在谈论Nuget包管理器。您可以使用Developer Command Prompt中的命令行,也可以更轻松地使用Visual Studio(工具菜单)中的Package Manager控制台。



命令行您可能正在寻找的是Install-Package Bower。
It's talking about the Nuget Package Manager. You can either use the command line from the Developer Command Prompt, or it's just easier to use the Package Manager Console inside Visual Studio (Tools menu).

The command line your probably looking for is "Install-Package Bower".


显然......

如果我扩展dependencies文件夹,我可以看到凉亭。如果我右键单击它可以打开bower.json

如果我添加此行react:0.13.3 in它,我可以看到一个小的加载消息...然后react.js神奇地出现在我的wwwroot \lib文件夹中!

我想VS2015中没有命令行调用,只需编辑.json文件!...
Apparently...
If I expand the "dependencies" folder I can see bower. If I right click on it it can open "bower.json"
If I add this line "react": "0.13.3" in it, I can see a little loading message... then react.js "magically" appeared in my wwwroot\lib folder!
I guess there are no command line call in VS2015, just edit the .json files!...


这篇关于关于VS2015,nmp,ASP.NET5的虚假排队的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆