fix npm paths

This commit is contained in:
AJ ONeal 2017-11-01 23:31:21 -06:00
parent a617eb176c
commit 58a48a2877
1 changed files with 2 additions and 2 deletions

View File

@ -12,12 +12,12 @@ export NPM_CONFIG_PREFIX=/opt/digd.js
curl -fsSL https://bit.ly/install-min-node -o ./install-node.sh.tmp
bash ./install-node.sh.tmp
rm ./install-node.sh.tmp
/opt/digd.js/bin/npm install -g npm@4
/opt/digd.js/bin/node /opt/digd.js/bin/npm install -g npm@4
git clone https://git.coolaj86.com/coolaj86/digd.js /opt/digd.js/lib/node_modules/digd.js
pushd /opt/digd.js/lib/node_modules/digd.js
git checkout v1.1
/opt/digd.js/bin/npm install
/opt/digd.js/bin/node /opt/digd.js/bin/npm install
popd
sudo rsync -v /opt/digd.js/lib/node_modules/digd.js/dist/etc/systemd/system/digd.js.service /etc/systemd/system/