Skip to content

Instantly share code, notes, and snippets.

@yinyin
Created September 24, 2018 17:36
Show Gist options
  • Save yinyin/225acea268d3c2a15618b4f43f8b9755 to your computer and use it in GitHub Desktop.
Save yinyin/225acea268d3c2a15618b4f43f8b9755 to your computer and use it in GitHub Desktop.
Wrapper script for running node.js from customized folder
#!/bin/bash
NODEBASEPATH=/PATH/TO/NODEJS/INSTALLATION
SUBJECTCMD=`basename "${0}"`
export PATH=${NODEBASEPATH}/bin:$PATH
exec ${SUBJECTCMD} "${@}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment