Mercurial > code > home > repos > infra
comparison packages.py @ 147:51a48aeca8ba
node/npm fixes
author | drewp@bigasterisk.com |
---|---|
date | Sat, 11 Mar 2023 12:19:25 -0800 |
parents | 2065998876e4 |
children | 1f845cf1cc94 |
comparison
equal
deleted
inserted
replaced
146:2065998876e4 | 147:51a48aeca8ba |
---|---|
19 ]) | 19 ]) |
20 files.link(target="{local}/bin/kitty", path="{home}/bin/kitty") | 20 files.link(target="{local}/bin/kitty", path="{home}/bin/kitty") |
21 | 21 |
22 | 22 |
23 def pnpm(): | 23 def pnpm(): |
24 if host not in ['plus', 'prime', 'slash', 'bang', 'dot']: | |
25 return | |
26 server.shell([ | 24 server.shell([ |
27 # https://github.com/pnpm/pnpm/releases | 25 # https://github.com/pnpm/pnpm/releases |
28 # but also https://pnpm.io/installation#compatibility | 26 # but also https://pnpm.io/installation#compatibility |
29 "npm install -g pnpm@6.35.1", | 27 "npm install -g pnpm@6.35.1", |
30 ]) | 28 ]) |
45 apt.packages(packages=['libnode72'], present=False, force=True) | 43 apt.packages(packages=['libnode72'], present=False, force=True) |
46 | 44 |
47 apt.packages(packages=package_lists.setup, **kw) | 45 apt.packages(packages=package_lists.setup, **kw) |
48 | 46 |
49 if not is_pi: | 47 if not is_pi: |
48 apt.packages(packages=package_lists.non_pi_setup) | |
50 if host.name != 'pipe': | 49 if host.name != 'pipe': |
51 apt.packages(packages=['reptyr']) | 50 apt.packages(packages=['reptyr']) |
52 kitty() | 51 kitty() |
53 pnpm() | 52 pnpm() |
54 else: | 53 else: |