Chrome 插件开发 常用错误处理

1. Failed to start native messaging host.

1)可能是 native message host 的权限有问题

解决方法: chmod 755 host.js

2)可能是 host.js 中的 node 命令解释器有误

解决方法: 修改host.js 中第一行的注释, 如: #!/usr/bin/env node

2. Access to the specified native messaging host is forbidden

解决方法: Chrome/NativeMessagingHosts/xxx.json 里的allowed_origins 错误 

posted @ 2021-12-02 20:29  W-it-H-ou-T  阅读(939)  评论(0编辑  收藏  举报