{"action":"opened","issue":{"url":"https://api.github.com/repos/trezor/connect/issues/248","repository_url":"https://api.github.com/repos/trezor/connect","labels_url":"https://api.github.com/repos/trezor/connect/issues/248/labels{/name}","comments_url":"https://api.github.com/repos/trezor/connect/issues/248/comments","events_url":"https://api.github.com/repos/trezor/connect/issues/248/events","html_url":"https://github.com/trezor/connect/issues/248","id":375308861,"node_id":"MDU6SXNzdWUzNzUzMDg4NjE=","number":248,"title":"How can I run trezor-connect script in node command?","user":{"login":"Ray-cheng","id":32857921,"node_id":"MDQ6VXNlcjMyODU3OTIx","avatar_url":"https://avatars3.githubusercontent.com/u/32857921?v=4","gravatar_id":"","url":"https://api.github.com/users/Ray-cheng","html_url":"https://github.com/Ray-cheng","followers_url":"https://api.github.com/users/Ray-cheng/followers","following_url":"https://api.github.com/users/Ray-cheng/following{/other_user}","gists_url":"https://api.github.com/users/Ray-cheng/gists{/gist_id}","starred_url":"https://api.github.com/users/Ray-cheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ray-cheng/subscriptions","organizations_url":"https://api.github.com/users/Ray-cheng/orgs","repos_url":"https://api.github.com/users/Ray-cheng/repos","events_url":"https://api.github.com/users/Ray-cheng/events{/privacy}","received_events_url":"https://api.github.com/users/Ray-cheng/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-30T03:50:23Z","updated_at":"2018-10-30T03:50:23Z","closed_at":null,"author_association":"NONE","body":"I downloaded the trezor-connect module with \"npm install trezor-connect\" command and wrote a demo script to run, just call TrezorConnect.getPublicKey, but it has error：\r\n`/data/disk1/workdir/trezor-test/node_modules/trezor-connect/lib/data/ConnectSettings.js:39\r\n    supportedBrowser: !/Trident|MSIE/.test(navigator.userAgent),\r\n                                           ^\r\n\r\nReferenceError: navigator is not defined\r\n    at Object.<anonymous> (/data/disk1/workdir/trezor-test/node_modules/trezor-connect/lib/data/ConnectSettings.js:39:44)\r\n    at Module._compile (internal/modules/cjs/loader.js:688:30)\r\n    at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)\r\n    at Module.load (internal/modules/cjs/loader.js:598:32)\r\n    at tryModuleLoad (internal/modules/cjs/loader.js:537:12)\r\n    at Function.Module._load (internal/modules/cjs/loader.js:529:3)\r\n    at Module.require (internal/modules/cjs/loader.js:636:17)\r\n    at require (internal/modules/cjs/helpers.js:20:18)\r\n    at Object.<anonymous> (/data/disk1/workdir/trezor-test/node_modules/trezor-connect/lib/index.js:72:24)\r\n    at Module._compile (internal/modules/cjs/loader.js:688:30)\r\n`\r\nDoes it only run in browser?"}}
{"actor":{"display_login":"Ray-cheng"}}