这可以从powershell脚本运行节点js文件吗?

BON*_*TIF 3 powershell

我搜索了很多,但直到现在找不到任何东西。我有一个 ps1 文件,然后我想从那里运行节点 js 文件。这可能吗?

Sar*_*ran 5

是的,可能。将以下代码放入.ps1文件:

node /path/to/file.js

or

node /path/to/file.js &        # for daemon
Run Code Online (Sandbox Code Playgroud)