Page 1 of 1

[SOLVED] Install typescript in Mageia

PostPosted: Jul 19th, '20, 13:20
by santo
Hi all...
I am trying to understand how to install 'typescript' in Mageia but with no luck.
I am not an expert so at some point I get lost...
I was suggested this but nothing happens...
Any idea?
TIA
santo

Code: Select all
[santo@localhost ~]$ rpm -qa|grep -e npm -e nodejs|sort
[santo@localhost ~]$

Re: Install typescript in Mageia

PostPosted: Jul 19th, '20, 16:38
by doktor5000
You're asking about typescript, but your query for installed rpms is about npm and NodeJS.
You can install both npm and node2js via the default Mageia repositories: https://doc.mageia.org/mcc/7/en/content ... ement.html

Re: Install typescript in Mageia

PostPosted: Jul 20th, '20, 13:05
by santo
doktor5000 wrote:You're asking about typescript, but your query for installed rpms is about npm and NodeJS.
You can install both npm and node2js via the default Mageia repositories: https://doc.mageia.org/mcc/7/en/content ... ement.html


Thank you...I installed npm and Node.js through MCC but...

Code: Select all
[santo@localhost ~]$ typescript
bash: typescript: command not found
[santo@localhost ~]$


I remember years ago that just by typing typescript I would get a message
that the outcome of the command I would type next would be saved in a file
called 'typescript' in /home directory...was so easy to use and useful for
me...now it is installed I believe but still 'command not found'
what is it that I am missing?
TIA
santo

Re: Install typescript in Mageia

PostPosted: Jul 20th, '20, 17:27
by doktor5000
santo wrote:I remember years ago that just by typing typescript I would get a message
that the outcome of the command I would type next would be saved in a file
called 'typescript' in /home directory...was so easy to use and useful for me...


What you're looking for is the "script" command which is contained in the package util-linux which is always installed by default.

santo wrote:now it is installed I believe

but still 'command not found'
what is it that I am missing?

No, you only installed npm and NodeJS. typescript, which you were initially asking for, is a module which can be installed via npm: https://www.npmjs.com/package/typescript

Which does something totally different then what you're asking for, from what I can tell.
Maybe next time also tell for what purpose you want to install some package.

Re:[ SOLVED] Install typescript in Mageia

PostPosted: Jul 21st, '20, 08:29
by santo
Yes I followed a suggestion and found ( and remembered) that the command is 'script' and not 'typescript'

santo@localhost ~]$ script
Script started, file is typescript
[santo@localhost ~]$

Sorry, but it does what I ask for...keeps record in a file named 'typescript' of what I do when I am at the command line. Very usefull in case I make mistakes - which happen more than I would like, me not been a computer expert if I need help...
:-)
Thanks a lot for your help...
santo

Re: Install typescript in Mageia

PostPosted: Jul 21st, '20, 17:04
by doktor5000
Please mark the thread accordingly by editing the topic of the first post and prefix it by [SOLVED], thanks

Re: [SOLVED] Install typescript in Mageia

PostPosted: Jul 27th, '20, 11:28
by kajosim
The simple way to get what you have typed previously at the command line is to press the UP-arrow key on the keayboard.
Regards

Re: [SOLVED] Install typescript in Mageia

PostPosted: Jul 27th, '20, 16:26
by doktor5000
That does not help you with capturing the output of an entered command.

Re: [SOLVED] Install typescript in Mageia

PostPosted: Jul 28th, '20, 08:27
by santo
kajosim wrote:The simple way to get what you have typed previously at the command line is to press the UP-arrow key on the keayboard.
Regards

I know that...
;-)

Please see doktor5000 reply to you...
Thanls

Santo