3

运行 nodejs 的可执行文件时出现以下错误。我尝试在 package.json 中包含资产,但错误仍然不会消失。

**error: uncaughtException: File 'D:**\app\application_properties\CurrentEnv\application.properties' 在编译阶段未包含在可执行文件中。请重新编译将其添加为资产或脚本。**

包.json

"pkg": {
    "assets": [
      "node_modules/linebreak/src/classes.trie",
      "application_properties/CurrentEnv/application.properties",
      "app/binding.node"

  ]
}
4

0 回答 0