You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@gitsheny That's not something the library itself can act on, but you can try this:
asyncfunctiontest(){letregedit=require('regedit-rs');awaitregedit.createKey(`HKCU\\Software\\1-test`);// Remove from cachedeleterequire.cache[require.resolve('regedit-rs')];// Optionally nullify the referenceregedit=null;}
@gitsheny That's not something the library itself can act on, but you can try this:
asyncfunctiontest(){letregedit=require('regedit-rs');awaitregedit.createKey(`HKCU\\Software\\1-test`);// Remove from cachedeleterequire.cache[require.resolve('regedit-rs')];// Optionally nullify the referenceregedit=null;}
我在 electron 中有个函数动态引入这个库,函数结束后,在不退出 electron 的情况下, regedit-rs.win32-x64-msvc.node 文件仍然被占用。有办法手动释放吗?
The text was updated successfully, but these errors were encountered: