使用PKG的Nodejs服务不会使用PowerShell打开以下路径

发布于 2025-02-02 05:12:26 字数 323 浏览 2 评论 0原文

我有一个使用nodejs + pkg + node-nodifier + Open创建的应用程序,该应用程序是用NSSM创建的。

问题在于,当应用程序作为服务在PowerShel中执行命令时,NPM软件包“打开”。

我已经查看了大部分文档,但我还没有找到一种方法来找出它是否返回错误。

C:\WindowsSystem32\WindowsPowerShell\v1.0\powershell -NoProfile -NonInteractive -ExecutionPolicy Bypass -EncodedCommand <encode>

I have an application created with Nodejs + pkg + node-notifier + open that I create as a service with NSSM.

The problem is that the npm package 'open' when the app is as a service does not work when executing a command in powershel.

I have looked at most of the documentation and I have not found a way to find out if it returns an error.

C:\WindowsSystem32\WindowsPowerShell\v1.0\powershell -NoProfile -NonInteractive -ExecutionPolicy Bypass -EncodedCommand <encode>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文