Browse Source

Ensure that node modules are removed

Bob Mottram 8 years ago
parent
commit
2de956b687
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      src/freedombone-utils-nodejs

+ 3
- 0
src/freedombone-utils-nodejs View File

@@ -93,6 +93,9 @@ function remove_nodejs {
93 93
         if [ -f /usr/bin/node ]; then
94 94
             rm /usr/bin/node
95 95
         fi
96
+        if [ -d /usr/lib/node_modules ]; then
97
+            rm -rf /usr/lib/node_modules
98
+        fi
96 99
 
97 100
         remove_app nodejs
98 101