Closed ayame113 closed 1 year ago
According to https://github.com/denoland/deno/issues/4357#issue-580914687, when you perform an operation that is not available in windows (such as changing read permissions), node does not throw, but deno throws.
Introducing this behavior into Deno seems to have been a deliberate decision (https://github.com/denoland/deno/pull/4446).
Perhaps the solution is to enclose the Deno.chmod{,Sync}
in the _fs_chmod.ts
with try-catch?
I get an error when running firebase cli (npm:firebase-tools) on Windows.
I debugged this error and found it was caused by
fs.chmodSync()
incompatibility on windows. The code below gives an error only on deno.According to https://github.com/denoland/deno/issues/4357#issue-580914687, when you perform an operation that is not available in windows (such as changing read permissions), node does not throw, but deno throws.