Bitcoin Forum

Bitcoin => Pools => Topic started by: zacharyguo on September 04, 2015, 11:22:46 AM



Title: Help about setup node-open-mining-portal
Post by: zacharyguo on September 04, 2015, 11:22:46 AM
Please Help Me How To Fix It
I follow this website http://blockgen.net/blog/novices-guide-to-setting-up-a-crypto-currency-mining-pool/#NOMP_Stratum_Setup (http://blockgen.net/blog/novices-guide-to-setting-up-a-crypto-currency-mining-pool/#NOMP_Stratum_Setup) to setup my own mining pool usage mpos
allow to final setup my ubuntu terminal show  error can't work
look this

/home/7788/nomp/init.js:25
var portalConfig = JSON.parse(JSON.minify(fs.readFileSync("config.json", {enco
                                   ^
TypeError: Property 'minify' of object #<Object> is not a function
    at Object.<anonymous> (/home/7788/nomp/init.js:25:36)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:935:3

Is any body can help me to fix this problem
Please And Thank You Very Much!


Title: Re: Help about setup node-open-mining-portal
Post by: BeastBTC on September 05, 2015, 03:34:02 AM
It is a bug in node-json-minify module. The version 0.1.1 has a bug in it. Unfortunately their versioning is made so, that the dependency in iodocs can't get a newer version of it.
This can be fixed by changing the version in package.json to "node-json-minify": ">= 0.1.3-a",. This will install a newer version of minify.


Title: Re: Help about setup node-open-mining-portal
Post by: zacharyguo on September 05, 2015, 06:25:35 AM
How Can I Change the json version?
Please!Tell ME!
Thank You Very Much!


Title: Re: Help about setup node-open-mining-portal
Post by: loshia on September 05, 2015, 08:17:09 PM
How Can I Change the json version?
Please!Tell ME!
Thank You Very Much!
VI(m) ;) that is a guess though
Have you asked Google? It knows for sure an it will !!!!!!!!!!!!!!!!!!TELL YOU!!!!!!!!!!!!!!!!!!


Title: Re: Help about setup node-open-mining-portal
Post by: BeastBTC on September 05, 2015, 08:45:12 PM
Here, in your NOMP directory just upload this file and overwite your current package.json

http://ucrypto.co/package.json

You can even copy and paste the text located at http://ucrypto.co/package.json into your package.json


Title: Re: Help about setup node-open-mining-portal
Post by: Nexious on September 08, 2015, 08:19:12 AM
Open the package.json and change the version of node-json-minify to verson 1.3 onwards as there is a bug.

If you need any help doing this give me a pm and I'd be glad to help :)