diff --git a/lib/remove/rimraf.js b/lib/remove/rimraf.js index 15924c37..f0786945 100644 --- a/lib/remove/rimraf.js +++ b/lib/remove/rimraf.js @@ -117,7 +117,7 @@ function fixWinEPERM (p, options, er, cb) { assert(er instanceof Error) } - options.chmod(p, 666, er2 => { + options.chmod(p, 0o666, er2 => { if (er2) { cb(er2.code === 'ENOENT' ? null : er) } else { @@ -144,7 +144,7 @@ function fixWinEPERMSync (p, options, er) { } try { - options.chmodSync(p, 666) + options.chmodSync(p, 0o666) } catch (er2) { if (er2.code === 'ENOENT') { return