devtools-terminal icon indicating copy to clipboard operation
devtools-terminal copied to clipboard

Not able to connect via both Native Messaging API & Web Socket on Mac Mavericks

Open mudassir0909 opened this issue 10 years ago • 5 comments

Native Messaging API

OS: Mavericks (using zsh) Google Chrome: Version 36.0.1985.125

$ which node
/usr/local/bin/node

$ node -v
v0.10.28

$ npm install -g devtools-terminal

> [email protected] install /usr/local/lib/node_modules/devtools-terminal/node_modules/pty.js
> node-gyp rebuild

  CXX(target) Release/obj.target/pty/src/unix/pty.o
  SOLINK_MODULE(target) Release/pty.node
  SOLINK_MODULE(target) Release/pty.node: Finished

> [email protected] install /usr/local/lib/node_modules/devtools-terminal/node_modules/socket.io/node_modules/engine.io/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
  SOLINK_MODULE(target) Release/bufferutil.node
  SOLINK_MODULE(target) Release/bufferutil.node: Finished
  CXX(target) Release/obj.target/validation/src/validation.o
  SOLINK_MODULE(target) Release/validation.node
  SOLINK_MODULE(target) Release/validation.node: Finished

> [email protected] install /usr/local/lib/node_modules/devtools-terminal/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
  SOLINK_MODULE(target) Release/bufferutil.node
  SOLINK_MODULE(target) Release/bufferutil.node: Finished
  CXX(target) Release/obj.target/validation/src/validation.o
  SOLINK_MODULE(target) Release/validation.node
  SOLINK_MODULE(target) Release/validation.node: Finished
/usr/local/bin/devtools-terminal -> /usr/local/lib/node_modules/devtools-terminal/bin/devtools-terminal
[email protected] /usr/local/lib/node_modules/devtools-terminal
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected])





$ sudo devtools-terminal --install --id=leakmhneaibbdapdoienlkifomjceknl
Password:
Chrome Native Messaging host application installed successfully

$ cat com.dfilimonov.devtoolsterminal.json
{
  "name": "com.dfilimonov.devtoolsterminal",
  "description": "Devtools Terminal",
  "path": "/usr/local/lib/node_modules/devtools-terminal/bin/nm-host.sh",
  "type": "stdio",
  "allowed_origins": [
    "chrome-extension://leakmhneaibbdapdoienlkifomjceknl/"
  ]
}%


$ ls -l nm-host.sh
-rwxr-xr-x  1 mudassir  staff  184 Jan 16 21:02 nm-host.sh

After all this I see the following (Also tried restarting the chrome ) ss

Connecting via Websocket server

$ devtools-terminal

/usr/local/lib/node_modules/devtools-terminal/bin/devtools-terminal:280
  io.configure(function (){
     ^
TypeError: Object #<Server> has no method 'configure'
    at Object.<anonymous> (/usr/local/lib/node_modules/devtools-terminal/bin/devtools-terminal:280:6)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:906:3

mudassir0909 avatar Jul 17 '14 09:07 mudassir0909

I have exactly the same problem.

alarie avatar Jul 18 '14 07:07 alarie

Also verified here. @petethepig anything we can do to assist here? It looks like lots of people have been having issues getting the extension running.

brennebeck avatar Jul 25 '14 07:07 brennebeck

I have that issue too.

arthurvr avatar Jul 30 '14 18:07 arthurvr

Same here.. Worked on my previous computer. Now since I got a new one, it won't let me install it again.

kvonspiczak avatar Aug 22 '14 08:08 kvonspiczak

If you use Chromium, run sudo devtools-terminal --install --chromium.

Found out by checking out https://raw.githubusercontent.com/petethepig/devtools-terminal/master/backend/bin/devtools-terminal.

Now it works! :smiley:

nmrt avatar Aug 23 '14 14:08 nmrt