kessler / node-regedit

Read, Write, List and do all sorts of funky stuff to the windows registry using node.js and windows script host
MIT License
279 stars 45 forks source link

Cannot find module 'regedit' #24

Closed Chinalijian closed 7 years ago

Chinalijian commented 7 years ago

Hi, I'm trying to get registry information var regedit = require('regedit') regedit.list('HKCU\\SOFTWARE\\BI\\EcgLab', function(err, result) { console.log('result:' + JSON.stringify(result['HKCU\\SOFTWARE\\BI\\EcgLab'])) if (err != null) { console.log('exec error:' + err) } })

but , run the installation package, The pop-up error message: error

Thanks!

nhz-io commented 7 years ago

Please provide more info about your environment. What is this screenshot?

kessler commented 7 years ago

@Chinalijian can you attach your NPM install output?

CherryDT commented 7 years ago

@nhz-io This appears to be an exception message from Electron

nhz-io commented 7 years ago

@CherryDT AHA! Thanks for deduction. I will have to setup mock electron project to test it. Though I suspect someone forgot to npm i

kessler commented 7 years ago

@CherryDT you should take a look at this: #13 In the meanwhile I'm closing this issue, it's not a problem or a bug in regedit

CherryDT commented 7 years ago

I just pointed out that the screenshot may come from Electron, I don't use it there ;) @Chinalijian you should take a look at this: #13

kessler commented 7 years ago

@CherryDT sorry ;-)