【问题标题】:node webkit app-view permissions节点 webkit 应用程序查看权限
【发布时间】:2015-03-30 07:23:49
【问题描述】:

我有一个主干网络应用程序,在我的浏览器中一切正常。现在我想用 Node webkit 制作一个 .exe。

这是我的 package.json 文件:

{
"name": "XXXX",
"main": "index.html",
"window": {
    "toolbar": true,
    "width": 800,
    "height": 600
},
"single-instance": false,
"version": "1alpha",
"private": true

}

但是当我执行程序时,我会在 js 控制台中获得这些消息:

You do not have permission to use the appview element. Be sure to declare the 'appview' permission in your manifest file and use the --enable-app-view command line flag.

我一直在解决它here,但我没有找到任何解决方案。

有什么想法吗?谢谢

【问题讨论】:

  • 你试过“js-flags”:“--enable-app-view”
  • 谢谢。是的,但显示相同的错误。

标签: node-webkit


【解决方案1】:

我找到了任何部分解决方案。如果将主要选项更改为:

"main": "http://localhost:8000",

它工作得很好,但我需要先启动一个小网络服务器,我不想这样做。有什么想法吗?

【讨论】:

    猜你喜欢
    • 2021-02-01
    • 2014-10-27
    • 1970-01-01
    • 2014-11-10
    • 1970-01-01
    • 2015-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多