Code Monkey home page Code Monkey logo

helium-payment-calculator's Introduction

helium-payment-calculator

Web application that can calculate the exact amount of HNT to pay someone that is hosting your hotspot.

Node.js CI CodeQL

Getting Started

Install project dependencies with npm install

Usage

  • npm start - Runs the Webpack development server
  • npm run lint - Runs ESLint to check for source code warnings and errors
  • npm run build - Builds the source code for production to the dist folder

helium-payment-calculator's People

Contributors

dependabot[bot] avatar matthewdowns avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

helium-payment-calculator's Issues

Locally setting up

Hello,

I've tried to set up the payment calculator on a Rocky Linux machine without success.

NPM keeps hitting me with this error, maybe you can help.

[webpack-cli] /home/Remus/helium-payment-calculator/node_modules/webpack-dev-server/lib/servers/WebsocketServer.js:10
  static heartbeatInterval = 1000;
                           ^

SyntaxError: Unexpected token =
    at Module._compile (internal/modules/cjs/loader.js:723:23)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Server.getServerTransport (/home/Remus/helium-payment-calculator/node_modules/webpack-dev-server/lib/Server.js:1191:28)
    at Server.createWebSocketServer (/home/Remus/helium-payment-calculator/node_modules/webpack-dev-server/lib/Server.js:1757:38)
    at Server.start (/home/Remus/helium-payment-calculator/node_modules/webpack-dev-server/lib/Server.js:2305:12)
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] start: `webpack serve --open --mode development`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2021-12-11T04_19_22_646Z-debug.log

You can also check the logs below.

[root@localhost helium-payment-calculator]# cat /root/.npm/_logs/2021-12-11T04_19_22_646Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/bin/npm', 'start' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle [email protected]~prestart: [email protected]
6 info lifecycle [email protected]~start: [email protected]
7 verbose lifecycle [email protected]~start: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]~start: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/Remus/helium-payment-calculator/node_modules/.bin:/sbin:/bin:/usr/sbin:/usr/bin
9 verbose lifecycle [email protected]~start: CWD: /home/Remus/helium-payment-calculator
10 silly lifecycle [email protected]~start: Args: [ '-c', 'webpack serve --open --mode development' ]
11 silly lifecycle [email protected]~start: Returned: code: 2  signal: null
12 info lifecycle [email protected]~start: Failed to exec start script
13 verbose stack Error: [email protected] start: `webpack serve --open --mode development`
13 verbose stack Exit status 2
13 verbose stack     at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
13 verbose stack     at EventEmitter.emit (events.js:198:13)
13 verbose stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack     at ChildProcess.emit (events.js:198:13)
13 verbose stack     at maybeClose (internal/child_process.js:982:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
14 verbose pkgid [email protected]
15 verbose cwd /home/Remus/helium-payment-calculator
16 verbose Linux 4.18.0-348.2.1.el8_5.x86_64
17 verbose argv "/usr/bin/node" "/bin/npm" "start"
18 verbose node v10.24.0
19 verbose npm  v6.14.11
20 error code ELIFECYCLE
21 error errno 2
22 error [email protected] start: `webpack serve --open --mode development`
22 error Exit status 2
23 error Failed at the [email protected] start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.

I've looked into different github threads and it looks like to be a node version issue but at the latest stable version.

[root@localhost helium-payment-calculator]# node --version
v10.24.0
[root@localhost helium-payment-calculator]# npm --version
6.14.11

Not sure what I'm missing here, hope you can assist.

Regards,
Remus

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.