简体   繁体   English

Node.js无接触(XCOPY)在Windows上安装

[英]Node.js Touchless (XCOPY) Install on Windows

This may be the wrong forum to ask this question, however is it possible to do a "touchless" node.js deployment? 这可能是提出这个问题的错误论坛,但有可能做一个“无接触”的node.js部署吗? For example, is it possible to push a copy of node.exe and the required packages to a physical location on the drive (assume the machine is generally in a disconnected state) then have a shortcut that executes the appropriate commandline to get the node process running? 例如,是否可以将node.exe和所需包的副本推送到驱动器上的物理位置(假设机器通常处于断开连接状态),然后使用快捷方式执行相应的命令行以获取节点进程运行?

I know that this is a loaded question, because without being physically installed on the box, and then running within a Windows Service, you lose all the lifetime management, and that is just scratching the surface of the things that need to be considered. 我知道这是一个加载的问题,因为没有物理安装在盒子上,然后在Windows服务中运行,你将失去所有的生命周期管理,这只是需要考虑的事情的表面。 Anyway, I truly appreciate the help and opinions. 无论如何,我真的很感激帮助和意见。

Just coming back to clean up this answer. 刚回来清理这个答案。 Yes this is possible, but not always advisable. 是的,这是可能的,但并不总是可取的。 Better to do an installation or leverage containers. 最好安装或利用容器。

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

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