Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@csharp-main:~# cat reset_npm_stuff.sh
- #!/bin/bash
- SOURCE_DIR="/home/opensrf"
- EG_DIRNAME="Evergreen"
- INSTALL_PREFIX="/openils"
- OS_VER="$(lsb_release -si | tr [:upper:] [:lower:])-$(lsb_release -sc | tr [:upper:] [:lower:])"
- # delete system-level npm stuff
- cd /usr/local/bin/
- rm ng node npm npx
- cd ../lib/
- rm -rf node_modules/
- # delete node_modules everywhere
- rm -rf $INSTALL_PREFIX/var/web/js/ui/default/staff/node_modules
- rm -rf $SOURCE_DIR/$EG_DIRNAME/Open-ILS/web/js/ui/default/staff/node_modules
- rm -rf $SOURCE_DIR/$EG_DIRNAME/Open-ILS/src/eg2/node_modules
- rm -rf $SOURCE_DIR/$EG_DIRNAME/Open-ILS/web/opac/deps/node_modules
- cd $SOURCE_DIR && make -f $SOURCE_DIR/$EG_DIRNAME/Open-ILS/src/extras/Makefile.install $OS_VER-developer
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement