我们能否从Visual Studio任务运行器资源管理器中运行npm start [英] Can we able to run npm start from Visual Studio task runner explorer

查看:127
本文介绍了我们能否从Visual Studio任务运行器资源管理器中运行npm start的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Visual Studio中设置Angular 4代码,我可以从Visual Studio成功构建.但是,如果要启动角度代码,请转到命令提示符并手动键入 npm start 来运行该应用程序.

I am setting up the Angular 4 code in Visual Studio, I can able to build successfully from Visual Studio. But if I want to start the angular code, I go to command prompt and manually type the npm start to run the application.

运行 npm start 后,我使用注册的端口浏览其正常工作.但是我不想使用命令提示符,我只想在Visual Studio任务运行器资源管理器中创建它.

After running the npm start, I browse with registered port its working fine. But I don't want to use a command prompt, all I want to make it in Visual Studio task runner explorer.

有可能吗?

推荐答案

您应该能够执行 CMD-SHIFT-P CTRL-SHIFT-P 并选择任务:运行任务",然后从列表中选择"npm:开始"任务

You should be able to do CMD-SHIFT-P or CTRL-SHIFT-P and select "Tasks: Run Task", then select the "npm: start" task from the list

这篇关于我们能否从Visual Studio任务运行器资源管理器中运行npm start的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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