flosse / json-file-store

A simple JSON store for Node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Windows no getuid

irjudson opened this issue · comments

C:\Users\irjudson\AppData\Roaming\npm\node_modules\nitrogen-cli\node_modules\jfs\lib\Store.js:46
owner = process.getuid() === stat.uid;
^
TypeError: Object # has no method 'getuid'
at canWrite (C:\Users\irjudson\AppData\Roaming\npm\node_modules\nitrogen-cli\node_modules\jfs\lib\Store.js:46:21)
at C:\Users\irjudson\AppData\Roaming\npm\node_modules\nitrogen-cli\node_modules\jfs\lib\Store.js:60:13
at Object.oncomplete (fs.js:107:15)

@irjudson thx for that feedback. Could you try if this patch is working for you?

This does appear to fix it. Thanks!

cool :)

any chance you can cut a new package? prepublish (coffeescript) on windows is more challenging than just npm install :)

ok, now your next npm i should update to v0.2.2 :)