Here is a workaround for node (tested on Ubuntu 22.04):
for cmd in node npm yarn; do mkdir -p ~/bin cat > "$HOME/bin/$cmd" << EOF #!/bin/bash
/snap/bin/$cmd "\$@" > >(cat) 2> >(cat >&2) EOF chmod +x "$HOME/bin/$cmd" done
Here is a workaround for node (tested on Ubuntu 22.04):
for cmd in node npm yarn; do
mkdir -p ~/bin
cat > "$HOME/bin/$cmd" << EOF
#!/bin/bash
/snap/bin/$cmd "\$@" > >(cat) 2> >(cat >&2)
EOF
chmod +x "$HOME/bin/$cmd"
done