Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 pkg 捆绑使用 node-windows 将其作为服务运行的节点应用程序。但是可执行文件不会启动服务。我也没有收到任何错误。我们是否需要在 package.json 中添加任何额外的配置来构建?
确保在package.json文件中添加以下内容:
package.json
"pkg": { "scripts": "build/**/*.js", "assets": "views/**/*" }