function unlinkSync(file) {
      try {
        fs.unlinkSync(file);
      } catch(e) {
        // Try to override file permission
        if (e.code === 'EPERM') {
          fs.chmodSync(file, '0666');
          fs.unlinkSync(file);
        } else {
          throw e;
        }
      }
    }
function unlinkSync(file) {
      try {
        fs.unlinkSync(file);
      } catch(e) {
        
        if (e.code === 'EPERM') {
          fs.chmodSync(file, '0666');
          fs.unlinkSync(file);
        } else {
          throw e;
        }
      }
    }
function unlinkSync ( file ) { try { fs . unlinkSync ( file ) ; } catch ( e ) { // Try to override file permission if ( e . code === 'EPERM' ) { fs . chmodSync ( file , '0666' ) ; fs . unlinkSync ( file ) ; } else { throw e ; } } }
Normalizes _unlinkSync() across platforms to match Unix behavior, i.e. file can be unlinked even if it's read-only, see https://github.com/joyent/node/issues/3006
Normalizes _unlinkSync () across platforms to match Unix behavior i . e . file can be unlinked even if it s read - only see https : // github . com / joyent / node / issues / 3006