問題タブ [node-windows]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
node.js - Nodejs: エラー: %1 は有効な Win32 アプリケーションではありません
私がググったように、以下の質問に対する答えはありません。実際、私のコードは Linux マシンで正常に動作していました。しかし、Windowsでエラーが発生しました。
エラー: %1 は有効な Win32 アプリケーションではありません。
編集済み:: 2以下のnpmパッケージを再インストールしようとしましたが、以下のエラーが発生しました。これも発生する可能性があります。
前もって感謝します
javascript - Restarting a service in node-windows
Using the node-windows package, I am installing a node server locally as a service. Having then an interface to modify the .env file, when I actually modify the configurations of the .env and save the changes, the issue is that the service does not restart as it is supposed to, in order to acknowledge these changes. Can anyone guide me if there any other way to handle service restarts from this package, or any other workarounds similiar? I actually am trying to handle the restart like this:
cmd - Windows サービスでコマンド ラインを使用できるようにする
Windows サービスでアクティブになっている単純なサービスを作成しました。私の問題は、Windows サービスを介して cmd にアクセスできないことです。node-cmd
サービス、 cmdアクセス、およびサービスの作成にnodejs Expressを使用しnode-windows
ています。私のアプリはこれを行います:
これを理解していない人のために説明すると、基本的には次のことを意味します。
これを手動で実行すると、クロムが起動します。Windowsサービスとして使用すると、クロムは起動しませんが、共鳴しますThe server is working correctly :)
なんらかの理由で、Windows サービスで cmd コマンドが機能しませんか?