cloudcmd / gritty Goto Github PK
View Code? Open in Web Editor NEWweb terminal emulator
License: MIT License
web terminal emulator
License: MIT License
The last version where terminal-kit shows working menus in gritty is 4.3.10.
Starting with 4.4.0 programs using in menus in terminal-kit show:
Error: .getCursorLocation() timed out
Hello to all,
when I try to install gritty with the terminal command
here is an error:
root@XXXXXXX:~# npm install gritty -g
/usr/bin/gritty -> /usr/lib/node_modules/gritty/bin/gritty.js
[email protected] install /usr/lib/node_modules/gritty/node_modules/node-pty
node scripts/install.js
gyp WARN EACCES current user ("nobody") does not have permission to access the dev dir "/root/.cache/node-gyp/10.23.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/lib/node_modules/gritty/node_modules/node-pty/.node-gyp"
gyp WARN install got an error, rolling back install
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/lib/node_modules/gritty/node_modules/node-pty/.node-gyp'
gyp ERR! System Linux 4.19.0-12-amd64
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/lib/node_modules/gritty/node_modules/node-pty
gyp ERR! node -v v10.23.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":">=12"} (current: {"node":"10.23.0","npm":"6.14.8"})
npm WARN notsup Not compatible with your version of node/npm: [email protected]
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node scripts/install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-11-11T14_08_39_099Z-debug.log
someone can help me?
Marco
How to change style of terminal?
I'm trying to install gritty on Termux but some error. This's log.
clang-8: error: linker command failed with exit code 1 (use -v to see invocation) make: * [pty.target.mk:135: Release/obj.target/pty.node] Error 1 make: Leaving directory '/data/data/com.termux/files/home/MDE/node_modules/node-pty/build' gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/data/data/com.termux/files/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23) gyp ERR! stack at ChildProcess.emit (events.js:200:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12) gyp ERR! System Linux 4.14.85-16003457 gyp ERR! command "/data/data/com.termux/files/usr/bin/node" "/data/data/com.termux/files/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /data/data/com.termux/files/home/MDE/node_modules/node-pty gyp ERR! node -v v12.4.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok npm WARN [email protected] No repository field. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"android","arch":"arm64"})
When I tried to install it on raspberry pi
it shows this error
pi@raspberrypi:~ $ sudo npm install gritty -g
/usr/bin/gritty -> /usr/lib/node_modules/gritty/bin/gritty.js
> [email protected] install /usr/lib/node_modules/gritty/node_modules/node-pty
> node scripts/install.js
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/10.6.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/lib/node_modules/gritty/node_modules/node-pty/.node-gyp"
gyp WARN install got an error, rolling back install
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/lib/node_modules/gritty/node_modules/node-pty/.node-gyp'
gyp ERR! System Linux 4.9.35-v7+
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/lib/node_modules/gritty/node_modules/node-pty
gyp ERR! node -v v10.6.0
gyp ERR! node-gyp -v v3.7.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node scripts/install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2018-07-16T01_53_50_024Z-debug.log
how do I enter custom key codes such as ctrl + w which closes the tab by default? there are no browser addons to disable that functionality.
So I can't input anything, no console errors or console output on server...
Basically blank terminal with pointer and nothing happens when typing in it etc., when I shut down my server, it does display terminal disconnected...
I am using Gritty as middleware in an express app,
Server
const httpt = require('http');
const iot = require('socket.io');
const servert = httpt.createServer(app);
const sockett = iot.listen(servert);
const portt = 3337;
const ipt = '0.0.0.0';
app.use(gritty());
gritty.listen(sockett, {
prefix: '/gritty'
});
servert.listen(portt, ipt);
Client
.gritty
//- #terminal
script.
const options = {
prefix: '/gritty',
autoRestart: true, // optional
env: {
TERMINAL: 'gritty',
}
};
gritty('.gritty', options);
ubuntu@ubuntu:~$ npm install gritty
npm ERR! code 1
npm ERR! path /home/ubuntu/node_modules/node-pty
npm ERR! command failed
npm ERR! command sh -c node scripts/install.js
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | linux | x64
npm ERR! gyp info find Python using Python version 3.8.10 found at "/usr/bin/python3"
npm ERR! gyp info spawn /usr/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args 'binding.gyp',
npm ERR! gyp info spawn args '-f',
npm ERR! gyp info spawn args 'make',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/home/ubuntu/node_modules/node-pty/build/config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/home/ubuntu/.cache/node-gyp/18.16.0/include/node/common.gypi',
npm ERR! gyp info spawn args '-Dlibrary=shared_library',
npm ERR! gyp info spawn args '-Dvisibility=default',
npm ERR! gyp info spawn args '-Dnode_root_dir=/home/ubuntu/.cache/node-gyp/18.16.0',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=/home/ubuntu/.cache/node-gyp/18.16.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=/home/ubuntu/node_modules/node-pty',
npm ERR! gyp info spawn args '-Dnode_engine=v8',
npm ERR! gyp info spawn args '--depth=.',
npm ERR! gyp info spawn args '--no-parallel',
npm ERR! gyp info spawn args '--generator-output',
npm ERR! gyp info spawn args 'build',
npm ERR! gyp info spawn args '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: not found: make
npm ERR! gyp ERR! stack at getNotFoundError (/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/which/which.js:10:17)
npm ERR! gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/which/which.js:57:18
npm ERR! gyp ERR! stack at new Promise ()
npm ERR! gyp ERR! stack at step (/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/which/which.js:54:21)
npm ERR! gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/which/which.js:71:22
npm ERR! gyp ERR! stack at new Promise ()
npm ERR! gyp ERR! stack at subStep (/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/which/which.js:69:33)
npm ERR! gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/which/which.js:80:22
npm ERR! gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/isexe/index.js:42:5
npm ERR! gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/isexe/mode.js:8:5
npm ERR! gyp ERR! System Linux 5.4.0-152-generic
npm ERR! gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /home/ubuntu/node_modules/node-pty
npm ERR! gyp ERR! node -v v18.16.0
npm ERR! gyp ERR! node-gyp -v v9.3.1
npm ERR! gyp ERR! not ok
npm ERR! A complete log of this run can be found in:
npm ERR! /home/ubuntu/.npm/_logs/2023-06-19T19_26_38_830Z-debug-0.log
ubuntu version: 20
python version: 3.8
npm version: 9.5.1
node version: v18.16.0
Can You Give Me The Example Code That Allow Me Use Authentication To Login. I Ask ChatGPT But ChatGPT Give Me Wrong Answer 😞
I'm trying to build with cloudcmd and gritty, but I always get an error, according to the log:
2310 verbose stack Exit status 1
2310 verbose stack at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
2310 verbose stack at EventEmitter.emit (events.js:315:20)
2310 verbose stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
2310 verbose stack at ChildProcess.emit (events.js:315:20)
2310 verbose stack at maybeClose (internal/child_process.js:1048:16)
2310 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
2311 verbose pkgid [email protected]
2312 verbose cwd /var/www/html
2313 verbose Linux 4.19.0-14-amd64
2314 verbose argv "/usr/bin/node" "/usr/bin/npm" "i" "gritty" "-g"
2315 verbose node v14.16.1
2316 verbose npm v6.14.12
2317 error code ELIFECYCLE
2318 error errno 1
2319 error [email protected] install: `node scripts/install.js`
2319 error Exit status 1
2320 error Failed at the [email protected] install script.
2320 error This is probably not a problem with npm. There is likely additional logging output above.
2321 verbose exit [ 1, true ]
Cloudcmd has already been installed using NPM and is running normally.
Thanks much for cloudcmd. It's working great. I'd hoped to add the Terminal component as described here, I've tried a few different ways of installing Gritty (uninstalling after each attempt):
npm i gritty -g
npm install -g gritty
sudo -E -H npm install -g gritty
All see to end up in this access error (or similar paths):
When I launch cloudcmd, I get this in log output:
davis@gandalf:~$ cloudcmd --terminal --terminal-path `gritty --path` --save
cloudcmd --terminal: Cannot find module '../build/Release/pty.node'
url: http://localhost:8000/
Then, I only see Console button in cloudcmd, not Terminal. Any tips on what I'm doing wrong?
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.