You can add the most recent node and npm binaries to $PATH with a command like this:
PATH=$PATH:`ls -td /opt/elasticbeanstalk/node-install/node-* | head -1`/bin
I couldn't figure out how to prevent beanstalk commands from resetting the $PATH back again.
If you are so inclined you can probably create a symlink with a command similar to the above and use that as your reference point in cron scripts etc.
Agreed, it is very very annoying.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…