-
-
Notifications
You must be signed in to change notification settings - Fork 613
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
node init.js #692
Comments
Use node v11.15.0, I had the same problem. |
Stardock2018 I used node v11.15.0 as you suggested but doesn't work, can you show your miner working, please |
Graft.westcoastxmr.ca
…On Sat., Oct. 16, 2021, 11:12 a.m. dagwood-Fenichuck, < ***@***.***> wrote:
Stardock2018 I used node v11.15.0 as you suggested but doesn't work, can
you show your miner working, please
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#692 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJAIPFRXYBJLW7PE75ZXDRLUHGXBVANCNFSM5FBMMCMA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Hi thanks for that shows great my site shows like this but just can't get buildl to run with the date format problem will try installing everything for the tenth time |
What Ubuntu version are you using?
…On Sat., Oct. 16, 2021, 12:17 p.m. dagwood-Fenichuck, < ***@***.***> wrote:
Hi thanks for that shows great my site shows like this but just can't get
buildl to run with the date format problem will try installing everything
for the tenth time
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#692 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJAIPFXQNCH2OXPBPVA3NVDUHG6TZANCNFSM5FBMMCMA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
ubuntu 18.04 bionic |
did you install all the deps. ? |
anyone knows how to fix it ? i have some error on 18 |
Installed everything in package.json plus two peer dependencies build says were missing, do you have a screenshot of the console running the pool at the end when you node init.js |
sure, here he is: [email protected] node init.js SyntaxError: Unexpected token export or /home/luissilva/pool/node_modules/dateformat/lib/dateformat.js:1 SyntaxError: Unexpected token export |
Stardock2018 do you have a screenshot of the miner running after you node init.js sir |
The pool even start for miner connections, |
Yes if you can i can't get the miner connection to start |
Like me |
Hi, thank you for your answer |
yes followed all instructions https://github.com/dvandal/cryptonote-nodejs-pool.git pool, but still gives dateformat error, I added ESM module, type: module to package.json changed dateformat.js to cjs and require to import and now get config undefined dont know where to go from here can anyone install this? |
Had the same issue yesterday. Found out the npm dateformat package has some recent updates that results in the above error. For me, changing the |
Thank you , |
That is probably because of your config.json & the website's config.js. In the pool's config.json, under the api section, you need to bind to your ip address. Leaving it on 0.0.0.0 won't work. I also had some issues when using 127.0.0.1, so use your local ip address of the server. After that, set the same ip address in the website's config.js behind the api variable. |
Thank you , I have changed my bind IP to my public ip address and even 127.0.0.1 but none of them didn't work |
could you please send me your config files |
Looks like your website's config.js is wrong. I see you use |
Thank you it worked for me. |
Thank you guys now running. have turtlecoin node in /home/user/ and pool in /var/www/pool can't connect to node daemon with pool on 127.0.0.1 or 0.0.0.0 have used my domain.com using nginx with reverse proxy. you can see its working. API started & listening on 0.0.0.0 port 8117 So it's not connecting to daemon someone tell me how to connect to this turtlecoin daemon please |
Works to solve the original error! |
:~/pool$ node init.js |
I have get this error while performing node init.js
could you please help?
uname -a:
Linux vmi677535.contaboserver.net 4.15.0-134-generic #138-Ubuntu SMP Fri Jan 15 10:52:18 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
I have installed node 11 ,14,16 but none of them worked I have also tried nvm but didn't worked for me.
/root/pool/node_modules/dateformat/lib/dateformat.js:1
var token=/d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]"|'[^']'/g;var timezone=/\b(?:[A-Z]{1,3}[A-Z][TC])(?:[-+]\d{4})?|((?:Australian )?(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time)\b/g;var timezoneClip=/[^-+\dA-Z]/g;export default function dateFormat(date,mask,utc,gmt){if(arguments.length===1&&typeof date==="string"&&!/\d/.test(date)){mask=date;date=undefined}date=date||date===0?date:new Date;if(!(date instanceof Date)){date=new Date(date)}if(isNaN(date)){throw TypeError("Invalid date")}mask=String(masks[mask]||mask||masks["default"]);var maskSlice=mask.slice(0,4);if(maskSlice==="UTC:"||maskSlice==="GMT:"){mask=mask.slice(4);utc=true;if(maskSlice==="GMT:"){gmt=true}}var _=function _(){return utc?"getUTC":"get"};var _d=function d(){return date_()+"Date"};var D=function D(){return date_()+"Day"};var m=function m(){return date_()+"Month"};var y=function y(){return date[()+"Full
SyntaxError: Unexpected token export
at Module._compile (internal/modules/cjs/loader.js:760:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:827:10)
at Module.load (internal/modules/cjs/loader.js:685:32)
at Function.Module._load (internal/modules/cjs/loader.js:620:12)
at Module.require (internal/modules/cjs/loader.js:723:19)
at require (internal/modules/cjs/helpers.js:14:16)
at Object. (/root/pool/lib/logger.js:11:18)
at Module._compile (internal/modules/cjs/loader.js:816:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:827:10)
at Module.load (internal/modules/cjs/loader.js:685:32)
The text was updated successfully, but these errors were encountered: