These are chat archives for nebrius/raspi-io
okay so the whole "don't use nvm" was where the issue was coming from. For reference this is what happened:
Resolution was as simple as forcing the salt-minion to run the nvm.sh shell script and THEN execute npm install.
Fixed, and FYI,
nvm appears to behave properly (that issue aside). Also Salt-Stack for managing your RPi "fleet" works a treat
nvmwork when you use
sudo node script.js? It’s been a while since I tested, but last time I tried,
nvm.shwasn’t executed for the root user, and I got an “node: command not found” error
nodeon the root path var or just call it explicitly (I just set up an alias)
/usr/localand make the
nvm.shscript fire at
/etc/profileor something... I'll have a play and see what I can come up with
nvm install Xwould work...
/usr/local/node/<version>/then symlink the appropriate binaries to
/usr/local/node/currentand then symlink binaries from there to
/usr/local/nodeto make switching symlinks easier