devtools-terminal
devtools-terminal copied to clipboard
Not able to connect via both Native Messaging API & Web Socket on Mac Mavericks
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 )
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
I have exactly the same problem.
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.
I have that issue too.
Same here.. Worked on my previous computer. Now since I got a new one, it won't let me install it again.
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: