Skip to content

Commit

Permalink
fix uninstalls on windows (#402)
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Jan 14, 2015
1 parent f5e620d commit 7d7f2dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/install.js
Expand Up @@ -813,7 +813,7 @@ function clean() {
return Promise.all(
packageDirs
.filter(function(dir) {
var exactName = path.relative(config.pjson.packages, dir).replace('/', ':');
var exactName = path.relative(config.pjson.packages, dir).replace(path.sep, ':').replace(/\\/g, '/'); // (win)
var remove = packageList.indexOf(exactName) == -1;
if (remove)
ui.log('info', 'Removing package files for `' + exactName + '`');
Expand Down

0 comments on commit 7d7f2dc

Please sign in to comment.