use node and npm in walnut-specific directory

This commit is contained in:
AJ ONeal 2017-06-14 18:37:26 -06:00
parent 0a10d0ac4f
commit b7d86946be
1 changed files with 4 additions and 1 deletions

View File

@ -196,6 +196,9 @@ install_uninstaller()
# Dependencies
export NODE_PATH=/opt/walnut/lib/node_modules
export NPM_CONFIG_PREFIX=/opt/walnut
mkdir -p $NODE_PATH
dap_dl_bash "https://git.daplie.com/coolaj86/node-install-script/raw/master/setup-min.sh"
# Install
@ -242,7 +245,7 @@ install_my_app()
ln -s /srv/walnut/var/sites /srv/walnut/packages/client-api-grants
pushd /srv/walnut/core
npm install
/opt/walnut/bin/npm install
popd
}