petethepig / devtools-terminal Goto Github PK
View Code? Open in Web Editor NEWTerminal in Chrome Devtools
Home Page: http://blog.dfilimonov.com/2013/09/12/devtools-terminal.html
License: MIT License
Terminal in Chrome Devtools
Home Page: http://blog.dfilimonov.com/2013/09/12/devtools-terminal.html
License: MIT License
I've been trying to make this extension work on my DigitalOcean server without success, :'(
It's a Linx machine (Ubuntu 14.04) and my desktop is Windows 8.1 x64.
Here is my output:
wesleycoder@wesleycoder:~$ sudo devtools-terminal --install
Chrome Native Messaging host application installed successfully
wesleycoder@wesleycoder:~$ sudo devtools-terminal
/usr/lib/node_modules/devtools-terminal/bin/devtools-terminal:280
io.configure(function (){
^
TypeError: Object #<Server> has no method 'configure'
at Object.<anonymous> (/usr/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
wesleycoder@wesleycoder:~$
Не работает кирилица в Убунту, знаки вопроса. Разве не юникод по умолчанию?
System:Linux 3.16.0-30-generic #40~14.04.1-Ubuntu SMP Thu Jan 15 17:43:14 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
sudo npm install -g devtools-terminal
[email protected] install /usr/local/lib/node_modules/devtools-terminal/node_modules/pty.js
node-gyp rebuild
npm http 304 https://registry.npmjs.org/redis/0.7.3
/bin/sh: 1: node: not found
gyp: Call to 'node -e "require('nan')"' returned exit status 127. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: gyp
failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/share/node-gyp/lib/configure.js:431:16)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Linux 3.16.0-30-generic
gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/devtools-terminal/node_modules/pty.js
gyp ERR! node -v v0.10.25
gyp ERR! node-gyp -v v0.10.10
gyp ERR! not ok
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
npm http 200 https://registry.npmjs.org/socket.io-client/-/socket.io-client-0.9.16.tgz
npm ERR! weird error 1
npm ERR! not ok code 0
I have trouble now, please help me how can I do this ,Please see more details log follow:
https://github.com/xiaoyanit/xiaoyanit.github.io/blob/macOS/Linux/ChromeTerminal/npm-debug.log
Sorry, command-not-found has crashed! Please file a bug report at:
https://bugs.launchpad.net/command-not-found/+filebug
Please include the following information with the report:
command-not-found version: 0.3
Python version: 3.4.0 final 0
Distributor ID: Ubuntu
Description: Ubuntu 14.04.1 LTS
Release: 14.04
Codename: trusty
Exception information:
'utf-8' codec can't encode character '\udcef' in position 0: surrogates not allowed
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/CommandNotFound/util.py", line 24, in crash_guard
callback()
File "/usr/lib/command-not-found", line 90, in main
if not cnf.advise(args[0], options.ignore_installed) and not options.no_failure_msg:
File "/usr/lib/python3/dist-packages/CommandNotFound/CommandNotFound.py", line 265, in advise
packages = self.getPackages(command)
File "/usr/lib/python3/dist-packages/CommandNotFound/CommandNotFound.py", line 157, in getPackages
result.update([(pkg, db.component) for pkg in db.lookup(command)])
File "/usr/lib/python3/dist-packages/CommandNotFound/CommandNotFound.py", line 85, in lookup
result = self.db.lookup(command)
File "/usr/lib/python3/dist-packages/CommandNotFound/CommandNotFound.py", line 41, in lookup
key = key.encode('utf-8')
UnicodeEncodeError: 'utf-8' codec can't encode character '\udcef' in position 0: surrogates not allowed
I just tried installing on Chrome 30 and get the Important Announcement message re: Chrome's abandonment of NPAPI. I've executed the npm install and sudo commands as directed but with no luck.
After the command:
npm install -g devtools-terminal
I get:
> [email protected] install /usr/local/lib/node_modules/devtools-terminal/node_modules/pty.js
> node-gyp rebuild
gyp WARN EACCES user "root" does not have permission to access the dev dir "/var/root/.node-gyp/0.10.32"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/devtools-terminal/node_modules/pty.js/.node-gyp"
- CXX(target) Release/obj.target/pty/src/unix/pty.o
../src/unix/pty.cc:487:10: error: use of undeclared identifier 'openpty'
return openpty(amaster, aslave, name, (termios *)termp, (winsize *)winp);
^
../src/unix/pty.cc:533:10: error: use of undeclared identifier 'forkpty'
return forkpty(amaster, name, (termios *)termp, (winsize *)winp);
^
2 errors generated.
make: *** [Release/obj.target/pty/src/unix/pty.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:810:12)
gyp ERR! System Darwin 13.3.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/devtools-terminal/node_modules/pty.js
gyp ERR! node -v v0.10.32
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok
> [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
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the pty.js package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls pty.js
npm ERR! There is likely additional logging output above.
npm ERR! System Darwin 13.3.0
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "devtools-terminal"
npm ERR! cwd /private/var/root
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0
There are no terminal shortcuts like cmd+k, cmd+r, ctrl+r and so on. So it will be very useful if these shortcuts will be available in the terminal. At the moment this terminal is not very comfortable.
Also it will be goot to have tabs support as mentioned in #3
The default 11px is too small. And it seems this can't be resolved by just change the css, because I tried, after that vim just looks like hell.
Using Linuxmint I get:
/bin/sh: 1: node: not found
gyp: Call to 'node -e "require('nan')"' returned exit status 127. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: gyp
failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/share/node-gyp/lib/configure.js:431:16)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Linux 3.13.0-24-generic
gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/devtools-terminal/node_modules/pty.js
gyp ERR! node -v v0.10.25
gyp ERR! node-gyp -v v0.10.10
gyp ERR! not ok
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
npm ERR! weird error 1
How can I fix this?
Hi, your extension works great. I'm on Mac, and was wondering if it was possible to customize the Terminal theme? Can I load any color presets, like the ones I use for iTerm? Thanks,
-JP
Right now the install path is hardcoded to /etc/opt/chrome/native-messaging-hosts/
.
On my system I use the chromium
package offered by my distribution, thus the correct path would be /etc/chromium//native-messaging-hosts/
. With this change the terminal works as expected.
A command line switch to pass the correct directory would be great.
[email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the pty.js package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls pty.js
npm ERR! There is likely additional logging output above.
npm ERR! System Darwin 13.0.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "devtools-terminal"
npm ERR! cwd /private/var/root
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.24
npm ERR! code ELIFECYCLE
If you want the debug log please let me know.
please tell me what to patch or set to run the install script successfully ?
thanks
John
http://blog.dfilimonov.com/2013/09/12/devtools-terminal.html
First this page tells to install devtools-terminal
but later says you should run remote-terminal.js --config /path/to/config.js
, which should obviously be devtools-terminal --config /path/to/config.js
. the link to the server's source code is wrong as well.
I think memory leak could be present in devtools-terminal.
Today on linux server i found that is to less memory and I could do nothing. I start searching what process eat all memory and find up a strange list of commands that I typed on terminal. I killed devtools-terminal process and 50% of memory is empty now.
Do you kill processes that do not using no more? If disconnect occurs for example.
Hello! I'm using tmux in the terminal and it works pretty well for the most part, however, I can not run any commands that use bound keys (^ + a
). For example, to detach from a session, I can normally do ^ + a
then d
. In devtools-terminal, it does not work (nor do any ^ + a
commands.
In an ideal world I would avoid putting my password in plaintext, instead hashing my password and storing it in the config. Maybe it makes sense to allow the password to be a function, and let the user deal with that logic.
Hi, I installed terminal app in the chrome. However its asking for authorization with the url, login and password, without which I am not able to proceed. Can you please help me on this in letting me know what are the login credentials ?
Thanks!
Abi
Hi,
I'm using Chrome for OS X, and when I log into my account during installation I get the following error:
"We are sorry, but you do not have access to this service. Please log in to your Control Panel to enable this service."
I can't find anything related to the plugin in the control panel. Any ideas? Sorry, this isn't the place at all, but I was hoping you could help.
Thanks!
hello. Is there a way to support Cmd+K (clear the terminal) or any button for the same.
Tried :
$ npm install -g devtools-terminal
$ sudo devtools-terminal --install --id=leakmhneaibbdapdoienlkifomjceknl
Chrome Native Messaging host application installed successfully
Not working.
I even tried :
$ devtools-terminal
info - socket.io started
debug - authorized
warn - handshake error auth error
debug - authorized
warn - handshake error auth error
and then connect using 8080 port via termial
Hi,
'devtools-terminal' worked perfectly fine until the move to Native Messaging API. Since then, I've never been able to get it working. I've installed and re-installed everything following the instructions, but all I see when I open terminal is the announcement and instructions to install it.
I really loved having devtools-terminal as it greatly enhanced my dev productivity. Please let me know if I'm missing something or how I can get it working again.
Thanks,
Anand
crosh> npm install -g devtools-terminal
Unknown command: 'npm'
crosh>
Google Chrome 33.0.1750.124 (Official Build 251905) beta
Platform 5116.88.0 (Official Build) beta-channel daisy
Blink 537.36 (@167378)
JavaScript V8 3.23.17.13
Flash 12.0.0.70-r1
User Agent Mozilla/5.0 (X11; CrOS armv7l 5116.88.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.124 Safari/537.36
Command Line /opt/google/chrome/chrome --allow-webui-compositing --device-management-url=https://m.google.com/devicemanagement/data/api --enable-chrome-audio-switching --enable-fixed-position-compositing --enable-logging --enable-partial-swap --max-tiles-for-interest-area=512 --enterprise-enrollment-initial-modulus=8 --enterprise-enrollment-modulus-limit=12 --log-level=1 --login-profile=user --max-unused-resource-memory-usage-percentage=5 --no-protector --ui-enable-per-tile-painting --ui-prioritize-in-gpu-process --ui-max-frames-pending=1 --use-cras --user-data-dir=/home/chronos --register-pepper-plugins=/opt/google/chrome/pepper/libnetflixhelper.so#NetflixHelper#Helper for the Netflix application#2.0.0;application/x-ppapi-netflixhelper --use-gl=egl --ash-default-wallpaper-large=/usr/share/chromeos-assets/wallpaper/default_large.jpg --ash-default-wallpaper-small=/usr/share/chromeos-assets/wallpaper/default_small.jpg --ash-guest-wallpaper-large=/usr/share/chromeos-assets/wallpaper/guest_large.jpg --ash-guest-wallpaper-small=/usr/share/chromeos-assets/wallpaper/guest_small.jpg --ppapi-flash-path=/opt/google/chrome/pepper/libpepflashplayer.so --ppapi-flash-version=12.0.0.70-r1 --has-chromeos-keyboard --ppapi-flash-args=enable_hw_video_decode=1 --ppapi-out-of-process --vmodule=screen_locker=1,webui_screen_locker=1,network_portal_detector_impl=1,output_configurator=1,ash/display=1,zygote=1,plugin=2 --enable-share-group-async-texture-upload --login-manager --termination-message-file=/tmp/.org.chromium.Chromium.k9z59D/.org.chromium.Chromium.CQCaa8
When I install devtools-terminal by following command
npm install -g devtools-terminal
I get below error.
C:\Users\Anup\node_modules\devtools-terminal\node_modules\socket.io\node_modules
\socket.io-client\node_modules\ws>node "C:\nodejs\node_modules\npm\bin\node-gyp-
bin....\node_modules\node-gyp\bin\node-gyp.js" rebuild
npm ERR! not ok code 0
Thanks,
Anup
Is there anyway to make the width of of the screen wider? Even with the screen maximized, it is awfully small causing many things to wrap (see screenshot in link)
I'm using the devtools-terminal for osx and I'm trying to figure out how to disable the audible bell? Is there a specific config file or setting that I can adjust? Thanks for this awesome tool!
OS X 10.9.1
Chrome 32.0.1700.77
Running BASH shell
Devtools Terminal 0.4.0
Installed node.js w/o problem. Had to run next command at Root, but it fails:
JAMESs-Mac-Pro:~ Jim$ sudo npm install -g devtools-terminal
Password:
npm http GET https://registry.npmjs.org/devtools-terminal
npm http 304 https://registry.npmjs.org/devtools-terminal
npm http GET https://registry.npmjs.org/pty.js
npm http GET https://registry.npmjs.org/optimist
npm http GET https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/socket.io
npm http 304 https://registry.npmjs.org/mkdirp
npm http 304 https://registry.npmjs.org/optimist
npm http 304 https://registry.npmjs.org/socket.io
npm http 304 https://registry.npmjs.org/pty.js
npm http GET https://registry.npmjs.org/wordwrap
npm http GET https://registry.npmjs.org/minimist
npm http GET https://registry.npmjs.org/socket.io-client/0.9.16
npm http GET https://registry.npmjs.org/policyfile/0.0.4
npm http GET https://registry.npmjs.org/redis/0.7.3
npm http GET https://registry.npmjs.org/base64id/0.1.0
[email protected] install /usr/local/lib/node_modules/devtools-terminal/node_modules/pty.js
node-gyp rebuild
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
sh: node-gyp: command not found
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 127
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the pty.js package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls pty.js
npm ERR! There is likely additional logging output above.
npm ERR! System Darwin 13.0.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "devtools-terminal"
npm ERR! cwd /Users/Jim
npm ERR! node -v v0.10.24
npm ERR! npm -v 1.3.21
npm ERR! code ELIFECYCLE
npm http 304 https://registry.npmjs.org/minimist
npm http 304 https://registry.npmjs.org/wordwrap
npm http 304 https://registry.npmjs.org/policyfile/0.0.4
npm http 304 https://registry.npmjs.org/socket.io-client/0.9.16
npm http 304 https://registry.npmjs.org/redis/0.7.3
npm http 304 https://registry.npmjs.org/base64id/0.1.0
npm http GET https://registry.npmjs.org/uglify-js/1.2.5
npm http GET https://registry.npmjs.org/xmlhttprequest/1.4.2
npm http GET https://registry.npmjs.org/ws
npm http GET https://registry.npmjs.org/active-x-obfuscator/0.0.1
npm http 304 https://registry.npmjs.org/uglify-js/1.2.5
npm http 304 https://registry.npmjs.org/ws
npm http 304 https://registry.npmjs.org/xmlhttprequest/1.4.2
npm http 304 https://registry.npmjs.org/active-x-obfuscator/0.0.1
npm http GET https://registry.npmjs.org/zeparser/0.0.5
npm http GET https://registry.npmjs.org/tinycolor
npm http GET https://registry.npmjs.org/commander
npm http GET https://registry.npmjs.org/options
npm http GET https://registry.npmjs.org/nan
npm http 304 https://registry.npmjs.org/zeparser/0.0.5
npm http 304 https://registry.npmjs.org/commander
npm http 304 https://registry.npmjs.org/tinycolor
npm http 304 https://registry.npmjs.org/options
npm http 304 https://registry.npmjs.org/nan
[email protected] install /usr/local/lib/node_modules/devtools-terminal/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws
(node-gyp rebuild 2> builderror.log) || (exit 0)
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/Jim/npm-debug.log
npm ERR! not ok code 0
Let me know if you want npm-debug.log
ran
npm install -g devtools-terminal
sudo devtools-terminal --install --id=leakmhneaibbdapdoienlkifomjceknl
If a file path contains a hyphen, a newline is erroneously added (#12). This extra newline seems to cause another error: lines are not viewable once the printed content goes beyond the viewport height of the terminal. Attempting to scroll has no effect.
When I try and use this, it fails. My guess is that I don't use a POSIX terminal, a.k.a. fish.
Would be nice to have multiple tabs in the console running at the same time :)
I'm running chrome canary 33.0.1701.0 and am unable to use the extension. It never opens, just crashes, serving me with Chrome's blue crash screen. Ideas or suggestions on getting it to run?
while try intstalling devtools-terminal shows following errors
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the pty.js package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls pty.js
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.1.7600
npm ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install"
"-g" "devtools-terminal"
npm ERR! cwd c:
npm ERR! node -v v0.10.22
npm ERR! npm -v 1.3.14
npm ERR! code ELIFECYCLE
npm ERR! Error: EPERM, open 'c:\npm-debug.log'
npm ERR! { [Error: EPERM, open 'c:\npm-debug.log'] errno: 50, code: 'EPERM', path: 'c:\npm-debug.log' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Windows_NT 6.1.7600
npm ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install"
"-g" "devtools-terminal"
npm ERR! cwd c:
npm ERR! node -v v0.10.22
npm ERR! npm -v 1.3.14
npm ERR! path c:\npm-debug.log
npm ERR! code EPERM
npm ERR! errno 50
npm ERR! stack Error: EPERM, open 'c:\npm-debug.log'
npm http 200 https://registry.npmjs.org/base64id/-/base64id-0.1.0.tgz
how to fix it
On a Swedish (Mac) keyboard layout you produce the tilde character (~) by pressing ALT+¨. This doesn't seem to work, nothing happens at all.
I am using Chrome 31.0.1650.63 (latest as of 10/12 2013) on Mac OS X 10.9, and Devtools Terminal 0.3.5.
My goal for trying out your product was to give it to my boss and let him leverage the Chrome dev tools for his JavaScript playground and learning. It looks like great little product but I can't get it installed on my Win7 development box and wasn't aware of the extensive dependencies involved to even try. Luckily I have node installed so I didn't have to install it. But I got the Python error on my first install attempt. I shrugged that off and installed Python but now it's telling me it can't find vs 2010 build tools? We're a commercial .Net shop all running VS 2012 so I really can't take this to him. Wish I could try it out.
Thanks
You've created really great thing) Is it possible, to implement this to Sublime? It would be really usefull.
gyp ERR! configure error
gyp ERR! stack Error: gyp
failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/share/node-gyp/lib/configure.js:431:16)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Linux 3.13.0-36-generic
gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/devtools-terminal/node_modules/pty.js
gyp ERR! node -v v0.10.25
gyp ERR! node-gyp -v v0.10.10
gyp ERR! not ok
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 )
$ 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
When I open a new terminal, either in a extension page on in web inspector, no output shows until I manually click the 'remote connect' button. And it works smoothly in websocket mode.
In background page, I saw console logs home directory ~
or somewhat like my terminal, but no change happens in the panel.
It seems that the problem locates at app.js, because keys I pressed have been sent. I tested with sleep 100
and ps
showed the command worked.
I'm on Ubuntu 13.10, Chrome 32.0.1700 and Zsh.
Really appreciate your work~ Best wishes
I'm trying to launch Terminal in Chromium on Ubuntu 12.04.
Both npm module and chrome extension are installed correctly. Nevertheless terminal displays a "can't connect to native api" message:
*** Important announcement! ***
Due to Chrome's abandonment of NPAPI, we had to move ...
/etc/opt/chrome/native-messaging-hosts/
contains valid manifest. What else should I check?
For example, when grunt less uses figures.
Chrome will be dropping NPAPI support in 2014 (2 months) and will be removing all NPAPI plugins from the Chrome Web Store in May of 2014.
Is there a way this plugin can continue to work without the Netscape Plugin API?
Amazing app! Really helps with my workflow.
I was just curious if there's a shortcut, or a way to create a shortcut to go straight to the terminal? Instead of opening Dev Tools and then clicking to the Terminal tab.
Thanks again for the awesome work.
Below is the error message I'm receiving when I try to run the command: "sudo npm install -g devtools-terminal":
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the pty.js package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls pty.js
for example, I can't input in Japanese.
Hey @petethepig,
I installed the Node.js module and told Chrome where to find it. However, when I open up the terminal it still shows the installation message/prompt. I rebooted Chrome, still nothing.
Anything I can do to get this working? I'd love to help troubleshoot!
what does this mean? thanks.
HQSML-143679:~ root# npm install -g devtools-terminal
[email protected] install /usr/local/lib/node_modules/devtools-terminal/node_modules/pty.js
node-gyp rebuild
gyp WARN EACCES user "root" does not have permission to access the dev dir "/var/root/.node-gyp/0.10.31"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/devtools-terminal/node_modules/pty.js/.node-gyp"
CXX(target) Release/obj.target/pty/src/unix/pty.o
../src/unix/pty.cc:487:10: error: use of undeclared identifier 'openpty'
return openpty(amaster, aslave, name, (termios )termp, (winsize *)winp);
^
../src/unix/pty.cc:533:10: error: use of undeclared identifier 'forkpty'
return forkpty(amaster, name, (termios *)termp, (winsize *)winp);
^
2 errors generated.
make: ** [Release/obj.target/pty/src/unix/pty.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:810:12)
gyp ERR! System Darwin 13.2.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/devtools-terminal/node_modules/pty.js
gyp ERR! node -v v0.10.31
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok
[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)
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the pty.js package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls pty.js
npm ERR! There is likely additional logging output above.
npm ERR! System Darwin 13.2.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "devtools-terminal"
npm ERR! cwd /private/var/root
npm ERR! node -v v0.10.31
npm ERR! npm -v 1.4.23
npm ERR! code ELIFECYCLE
[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)
I may be missing something obvious, but I just cannot seem to get this to work.
I successfully ran these commands:
npm install -g devtools-terminal
sudo devtools-terminal --install --id=...
But I cannot get a prompt in the new chrome terminal (either its stuck on the announcement, or I can get a blank black screen, but no cursor).
I tried restarting the app, and am currently tinkering with a config.js
file, but can't seem to get anything to work. Even tried to do a remote connection, but that doesn't seem to help.
Would be handy if someone wanted to update the OSX-install documentation. Currently, it's a bit lacking, especially with the new NPAPI "announcement"
If you’re on a Mac, just download this Chrome extension. Install it, and you good to go. No need to read any further.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.