Skip to content

Commit 3f8971b

Browse files
iwilligclaude
andcommitted
Add Node.js profile.d config and pnpm package manager
- config/files/etc/profile.d/nodejs.sh: sets NPM_CONFIG_PREFIX and PATH so user-level npm global installs go to ~/.npm-global (no sudo) - Install pnpm from Fedora repos (dnf5) alongside nodejs Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 7701814 commit 3f8971b

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

Containerfile.d/060-languages.containerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Pi coding agent — use dnf5 (not rpm-ostree) so nodejs is immediately available
22
# for the subsequent npm call within the same RUN step
3-
RUN dnf5 install -y nodejs && \
3+
RUN dnf5 install -y nodejs pnpm && \
44
dnf5 clean all && \
55
npm install -g --prefix /usr --ignore-scripts @earendil-works/pi-coding-agent && \
66
ostree container commit
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
if command -v node >/dev/null 2>&1; then
2+
export NPM_CONFIG_PREFIX="${HOME}/.npm-global"
3+
export PATH="${HOME}/.npm-global/bin:${PATH}"
4+
fi

0 commit comments

Comments
 (0)