Closed p3x-robot closed 3 months ago
of course this error is, that you cannot use chown
in snap...
https://github.com/yeoman/configstore/blame/764ac63d17de9e3d322c1c42180a8d5bec85391a/index.js#L14
that line would work like this:
const writeFileOptions = {mode: 0o0600, chown: false};
actually it is still not work, as if it is chown : false
it will build the chown setting, there is no way to disable chown
right now
I think this could be fixed by switching to use https://github.com/fabiospampinato/atomically
The linked issue has been closed (https://github.com/npm/write-file-atomic/issues/49) and this issue can likely be closed too.
When I revert to configstore v4 and install on SNAP it works 100%.
With v5 it tries to chown a file, that is not permitted on SNAP.