petethepig / devtools-terminal

Terminal in Chrome Devtools
http://blog.dfilimonov.com/2013/09/12/devtools-terminal.html
MIT License
1.31k stars 89 forks source link

devtools-terminal: command not found #66

Closed ZhangHang-z closed 9 years ago

ZhangHang-z commented 9 years ago
zhg@hang:~/alwme$ sudo npm install -g devtools-terminal

> pty.js@0.3.0 install /home/zhg/alwme/node_modules/lib/node_modules/devtools-terminal/node_modules/pty.js
> node-gyp rebuild

make: Entering directory '/home/zhg/alwme/node_modules/lib/node_modules/devtools-terminal/node_modules/pty.js/build'
  CXX(target) Release/obj.target/pty/src/unix/pty.o
../src/unix/pty.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE PtyFork(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/unix/pty.cc:222:34: warning: ignoring return value of ‘int chdir(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
       if (strlen(cwd)) chdir(cwd);
                                  ^
  SOLINK_MODULE(target) Release/obj.target/pty.node
  COPY Release/pty.node
make: Leaving directory '/home/zhg/alwme/node_modules/lib/node_modules/devtools-terminal/node_modules/pty.js/build'
\
> ws@0.4.32 install /home/zhg/alwme/node_modules/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)

make: Entering directory '/home/zhg/alwme/node_modules/lib/node_modules/devtools-terminal/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/build'
  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
  SOLINK_MODULE(target) Release/obj.target/bufferutil.node
  COPY Release/bufferutil.node
  CXX(target) Release/obj.target/validation/src/validation.o
  SOLINK_MODULE(target) Release/obj.target/validation.node
  COPY Release/validation.node
make: Leaving directory '/home/zhg/alwme/node_modules/lib/node_modules/devtools-terminal/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/build'
/home/zhg/alwme/node_modules/bin/devtools-terminal -> /home/zhg/alwme/node_modules/lib/node_modules/devtools-terminal/bin/devtools-terminal
devtools-terminal@0.1.3 /home/zhg/alwme/node_modules/lib/node_modules/devtools-terminal
├── optimist@0.6.1 (wordwrap@0.0.3, minimist@0.0.10)
├── mkdirp@0.5.1 (minimist@0.0.8)
├── pty.js@0.3.0 (extend@1.2.1, nan@2.0.5)
└── socket.io@0.9.16 (base64id@0.1.0, policyfile@0.0.4, redis@0.7.3, socket.io-client@0.9.16)
zhg@hang:~/alwme$ sudo devtools-terminal --install --id=xxxxxxxxxxxxxxxxxxxxxxxxxxxx 
sudo: devtools-terminal: command not found
ZhangHang-z commented 9 years ago

Issue completed, I don't kown why is the command devtools-terminal not found in the system. You must into the node_modules/devtools-terminal/ directory, and type ./bin/devtools-terminal --install --id= by yourself.