mrrovot / trtl-cli

TRTL network status command line interface.
5 stars 6 forks source link

Installation Error #14

Closed atomsett closed 6 years ago

atomsett commented 6 years ago

As I know next-to-nothing about node.js, I am unable to troubleshoot the install.

aaron@aaron-ThinkPad-T440:~/trtl-cli$ uname -a
Linux aaron-ThinkPad-T440 4.15.0-33-generic #36~16.04.1-Ubuntu SMP Wed Aug 15 17:21:05 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
aaron@aaron-ThinkPad-T440:~$ git clone https://github.com/mrrovot/trtl-cli.git
Cloning into 'trtl-cli'...
remote: Counting objects: 170, done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 170 (delta 0), reused 2 (delta 0), pack-reused 163
Receiving objects: 100% (170/170), 54.29 KiB | 0 bytes/s, done.
Resolving deltas: 100% (89/89), done.
Checking connectivity... done.
aaron@aaron-ThinkPad-T440:~$ cd trtl-cli/
aaron@aaron-ThinkPad-T440:~/trtl-cli$ npm install
npm WARN trtl@1.0.42 No repository field.

added 92 packages from 117 contributors and audited 115 packages in 11.436s
found 0 vulnerabilities

aaron@aaron-ThinkPad-T440:~/trtl-cli$ npm link
npm ERR! path /home/aaron/trtl-cli
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall symlink
npm ERR! Error: EACCES: permission denied, symlink '/home/aaron/trtl-cli' -> '/usr/lib/node_modules/trtl'
npm ERR!  { [Error: EACCES: permission denied, symlink '/home/aaron/trtl-cli' -> '/usr/lib/node_modules/trtl']
npm ERR!   stack:
npm ERR!    'Error: EACCES: permission denied, symlink \'/home/aaron/trtl-cli\' -> \'/usr/lib/node_modules/trtl\'',
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'symlink',
npm ERR!   path: '/home/aaron/trtl-cli',
npm ERR!   dest: '/usr/lib/node_modules/trtl' }
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 current 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 (though this is not recommended).

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/aaron/.npm/_logs/2018-09-08T01_28_52_452Z-debug.log
aaron@aaron-ThinkPad-T440:~/trtl-cli$ ls
ascii  commands.js  helpers.js  index.js  node_modules  package.json  package-lock.json  README.md
aaron@aaron-ThinkPad-T440:~/trtl-cli$ sudo npm install
[sudo] password for aaron:         
npm WARN trtl@1.0.42 No repository field.

audited 115 packages in 6.033s
found 0 vulnerabilities

aaron@aaron-ThinkPad-T440:~/trtl-cli$ ls
ascii  commands.js  helpers.js  index.js  node_modules  package.json  package-lock.json  README.md
aaron@aaron-ThinkPad-T440:~/trtl-cli$ trtl --help
trtl: command not found
aaron@aaron-ThinkPad-T440:~/trtl-cli$

Regards, Aaron (madmax)

zack796 commented 6 years ago

Do you already have Node and NPM installed? If not then you'll want to go to npmjs.com and do that.

To verify those are both installed, use these commands:

Node -v Npm -v

If those both provide you with version numbers then you performed the install correctly. Next, cd into the trtl-cli folder and perform an install by using the command npm install.

From that point, you should be able to use the trtl commands from location.

atomsett commented 6 years ago

thanks for your response i will check tomorrow

On Sat, 8 Sep 2018, 03:15 Xaz, notifications@github.com wrote:

Do you already have Node and NPM installed? If not then you'll want to go to npmjs.com and do that.

To verify those are both installed, use these commands:

Node -v Npm -v

If those both provide you with version numbers then you performed the install correctly. Next, cd into the trtl-cli folder and perform an install by using the command npm install.

From that point, you should be able to use the trtl commands from location.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mrrovot/trtl-cli/issues/14#issuecomment-419605532, or mute the thread https://github.com/notifications/unsubscribe-auth/Ao6UhkArVNevCG4IryHkjeUxkoEBfJzdks5uYygogaJpZM4Wfqh7 .

atomsett commented 6 years ago
aaron@aaron-ThinkPad-T440:~$ node -v
v10.9.0
aaron@aaron-ThinkPad-T440:~$ nodejs -v
v10.9.0
aaron@aaron-ThinkPad-T440:~$ npm -v
6.2.0
aaron@aaron-ThinkPad-T440:~$ cd trtl-cli/
aaron@aaron-ThinkPad-T440:~/trtl-cli$ npm install
npm WARN trtl@1.0.42 No repository field.

audited 115 packages in 7.204s
found 0 vulnerabilities

aaron@aaron-ThinkPad-T440:~/trtl-cli$ 
zack796 commented 6 years ago

Looks good now try any of the commands. You can start by just typing trtl and that should show you available commands.

atomsett commented 6 years ago

I deleted the trtl-cli folder, downloaded the github repo again - then ran the install as documented in the readme.. and trtl --help worked! Thanks for your help!

zack796 commented 6 years ago

Glad to help!