use node and npm in walnut-specific directory
This commit is contained in:
parent
0a10d0ac4f
commit
b7d86946be
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue