有什么方法可以创建Node.js(npm)应用程序的快捷方式桌面? [英] Is there any way to create an shortcut desktop to a Node.js (npm) application?

查看:383
本文介绍了有什么方法可以创建Node.js(npm)应用程序的快捷方式桌面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

缺乏经验的用户希望查看"我在Node.js中创建的应用程序,但他们不想使用控制台.据他们介绍,安装它是一个好主意,只需单击一下,在桌面上,他们就可以看到"它.

Inexperienced users want to "see" the app that I've created in Node.js, but they don't want to use the console. According to them, it's a good idea to install it, and with a simple click, in desktop, they could "see" it.

他们希望将Node.js应用程序作为Windows程序运行.仅此而已!

They want to run the Node.js app as a Windows program. That's all!

我该怎么办?我应该创建一个批处理文件吗?

How can I do it? Should I create a batch file?

推荐答案

**已解决**

.bat文件,重命名为"appstart.bat"

An .bat file, renamed as "appstart.bat"

cd C:\Users\MyUser\MyApp
npm start

在桌面上具有快捷方式.

With shortcut in desktop.

这篇关于有什么方法可以创建Node.js(npm)应用程序的快捷方式桌面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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