cloudcmd / gritty

web terminal emulator
MIT License
108 stars 28 forks source link

I can't install gritty #18

Open DeveloperKubilay opened 1 year ago

DeveloperKubilay commented 1 year ago

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 node-gyp@9.3.1 npm ERR! gyp info using node@18.16.0 | 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

DeveloperKubilay commented 1 year ago

I fixed the problem but I still don't know how to use auth

coderaiser commented 1 year ago

If you want to set password with a config, command line or UI you better use Cloud Commander with gritty.

DeveloperKubilay commented 1 year ago

i just want terminal and auth how can i do i don't want file manager etc

coderaiser commented 1 year ago

This is the only way https://cloudcmd.io/#terminal, if you need auth, or use API or you can add --username and --password command line flags.

DeveloperKubilay commented 1 year ago

ubuntu@ubuntu:~$ npm i cloudcmd -g npm ERR! code EACCES npm ERR! syscall mkdir npm ERR! path /usr/lib/node_modules/cloudcmd npm ERR! errno -13 npm ERR! Error: EACCES: permission denied, mkdir '/usr/lib/node_modules/cloudcmd' npm ERR! [Error: EACCES: permission denied, mkdir '/usr/lib/node_modules/cloudcmd'] { npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'mkdir', npm ERR! path: '/usr/lib/node_modules/cloudcmd' npm ERR! } npm ERR! npm ERR! The operation was rejected by your operating system. npm ERR! It is likely you do not have the permissions to access this file as the curren t user npm ERR! npm ERR! If you believe this might be a permissions issue, please double-check the npm ERR! permissions of the file and its containing directories, or try running npm ERR! the command again as root/Administrator.

npm ERR! A complete log of this run can be found in: npm ERR! /home/ubuntu/.npm/_logs/2023-06-21T12_44_25_061Z-debug-0.log

coderaiser commented 1 year ago

Use sudo or https://github.com/nvm-sh/nvm

DeveloperKubilay commented 1 year ago

https://i.imgur.com/0vtbeAJ.png I don't want it here, I just want it to be terminal and auth system. I made the auth system, but I couldn't make it only show terminal. "cloudcmd --terminal --terminal-path gritty --path --port 91 --auth --username ubuntu --password ubuntu"

coderaiser commented 1 year ago

In this case you can contribute and add auth system from Cloud Commander.