Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Good way to install typescript?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Garbanzo
n00b
n00b


Joined: 06 Aug 2018
Posts: 37

PostPosted: Fri Sep 13, 2019 6:35 am    Post subject: Good way to install typescript? Reply with quote

What's a good way to install typescript? Usually it's done with:
Code:
npm install -g typescript

Obviously portage wont know about it, but is it safe since nothing in the tree should depend on it?
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30965
Location: here

PostPosted: Fri Sep 13, 2019 6:43 am    Post subject: Reply with quote

It's not recommended to global install anything outside portage.
Better way is install it only for your user or try jm-overlay overlay that as this package
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Garbanzo
n00b
n00b


Joined: 06 Aug 2018
Posts: 37

PostPosted: Sat Sep 14, 2019 7:33 am    Post subject: Reply with quote

Thx. I did use the overlay.

What kind of trouble would global installs with npm cause? npm has lots of little package which won't all have ebuilds (like 'is-odd' which only checks if a number is odd). If nothing else depends on it would it be safe?
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21724

PostPosted: Sat Sep 14, 2019 4:52 pm    Post subject: Reply with quote

Portage assumes that all relevant system-wide files are known to it, by way of installing them through it (or a compatible tool that would also register the files in the package database). Further, it assumes that files it installed were not silently changed by other programs. If you install an npm package system-wide, you risk three things:
  • It installs a file that Portage is not expecting, which may lead to spurious dependency problems later.
  • It overwrites a file managed by Portage.
  • It is not managed by Portage, so future upgrades/removals are your responsibility, not Portage's responsibility.
If you are willing to deal with those risks, yes, go ahead.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum