14 lines
		
	
	
		
			426 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			426 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
| diff --git a/index.js b/index.js
 | |
| index 61bf354..c00dc03 100644
 | |
| --- a/index.js
 | |
| +++ b/index.js
 | |
| @@ -156,7 +156,7 @@ class Installer {
 | |
|          )
 | |
|          return BB.join(
 | |
|            this.checkLock(),
 | |
| -          stat && rimraf(path.join(this.prefix, 'node_modules'))
 | |
| +          stat && rimraf(path.join(this.prefix, 'node_modules/*'))
 | |
|          )
 | |
|        }).then(() => {
 | |
|        // This needs to happen -after- we've done checkLock()
 |