[SOLVED] Install typescript in Mageia

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[SOLVED] Install typescript in Mageia

Postby santo » Jul 19th, '20, 13:20

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 ~]$
Last edited by santo on Jul 22nd, '20, 07:53, edited 2 times in total.
santo
 
Posts: 40
Joined: Oct 7th, '14, 13:24

Re: Install typescript in Mageia

Postby doktor5000 » Jul 19th, '20, 16:38

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
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17629
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Install typescript in Mageia

Postby santo » Jul 20th, '20, 13:05

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
Last edited by isadora on Jul 20th, '20, 14:08, edited 1 time in total.
Reason: Please place command-output between [CODE]-tags, to improve readability, thanks ahead!!! ;)
santo
 
Posts: 40
Joined: Oct 7th, '14, 13:24

Re: Install typescript in Mageia

Postby doktor5000 » Jul 20th, '20, 17:27

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.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17629
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re:[ SOLVED] Install typescript in Mageia

Postby santo » Jul 21st, '20, 08:29

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
Last edited by doktor5000 on Jul 21st, '20, 17:03, edited 1 time in total.
Reason: removed fullquote
santo
 
Posts: 40
Joined: Oct 7th, '14, 13:24

Re: Install typescript in Mageia

Postby doktor5000 » Jul 21st, '20, 17:04

Please mark the thread accordingly by editing the topic of the first post and prefix it by [SOLVED], thanks
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17629
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: [SOLVED] Install typescript in Mageia

Postby kajosim » Jul 27th, '20, 11:28

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
kajosim
 
Posts: 52
Joined: Feb 22nd, '17, 00:55

Re: [SOLVED] Install typescript in Mageia

Postby doktor5000 » Jul 27th, '20, 16:26

That does not help you with capturing the output of an entered command.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17629
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: [SOLVED] Install typescript in Mageia

Postby santo » Jul 28th, '20, 08:27

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
santo
 
Posts: 40
Joined: Oct 7th, '14, 13:24


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron