|
|
|
|
|
by Levitating
71 days ago
|
|
I've been using oh-my-pi, for the simple (and possibly naive/stubborn) reason that it doesn't try to get me to install it as global npm dependency in /usr. I am not a web developer, I don't need npm and I don't want it clobbering my /usr (which is immutable on many modern distro's anyway). Doesn't exactly inspire confidence in the project to me. oh-my-pi's installer installs a bun bundled binary in my users .local folder. That's much more user-friendly. |
|
Put this into `~/.npmrc`:
```
prefix = ~/.local
```
Bam, `npm install -g` contstrained to your `~/.local`