please tell me. Which version I should choose for nodejs? I hope you write answer to README.
First, I choose node:10.
I execute command following command:
npm install
npm run apply:bitpay
npm run start
than print a lot of error infomation:
root@hyyqyl-gameserver-prod:~/wallet# npm run start
> bitpay@12.1.0 start /root/wallet
> npm run ionic:serve
> bitpay@12.1.0 ionic:serve /root/wallet
> ionic-app-scripts serve --nolivereload
[16:02:29] ionic-app-scripts 3.2.3
[16:02:29] watch started ...
[16:02:29] build dev started ...
[16:02:29] clean started ...
[16:02:29] clean finished in less than 1 ms
[16:02:29] copy started ...
[16:02:29] deeplinks started ...
[16:02:30] deeplinks finished in 821 ms
[16:02:30] transpile started ...
[16:02:41] typescript: node_modules/bitcore-wallet-client/ts_build/lib/key.d.ts, line: 3
Invalid character.
L2: export declare class Key {
L3: #private;
L4: id: any;
[16:02:41] typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 3
Initializers are not allowed in ambient contexts.
L2: declare class Connector implements IConnector {
L3: readonly protocol = "wc";
L4: readonly version = 1;
[16:02:41] typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 4
Initializers are not allowed in ambient contexts.
L3: readonly protocol = "wc";
L4: readonly version = 1;
L5: private _bridge;
[16:02:41] typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 25
An accessor cannot be declared in an ambient context.
L24: constructor(opts: IConnectorOpts);
L25: set bridge(value: string);
L26: get bridge(): string;
[16:02:41] typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 26
An accessor cannot be declared in an ambient context.
L25: set bridge(value: string);
L26: get bridge(): string;
L27: set key(value: string);
[16:02:41] typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 27
An accessor cannot be declared in an ambient context.
L26: get bridge(): string;
L27: set key(value: string);
L28: get key(): string;
[16:02:41] typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 28
An accessor cannot be declared in an ambient context.
L27: set key(value: string);
L28: get key(): string;
L29: set clientId(value: string);
[16:02:41] typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 29
An accessor cannot be declared in an ambient context.
L28: get key(): string;
L29: set clientId(value: string);
L30: get clientId(): string;
[16:02:41] typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 30
An accessor cannot be declared in an ambient context.
L29: set clientId(value: string);
L30: get clientId(): string;
L31: set peerId(value: string);
[16:02:41] typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 31
An accessor cannot be declared in an ambient context.
L30: get clientId(): string;
L31: set peerId(value: string);
L32: get peerId(): string;
[16:02:41] typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 32
An accessor cannot be declared in an ambient context.
L31: set peerId(value: string);
L32: get peerId(): string;
L33: set clientMeta(value: IClientMeta | null);
[16:02:41] typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 33
An accessor cannot be declared in an ambient context.
L32: get peerId(): string;
L33: set clientMeta(value: IClientMeta | null);
L34: get clientMeta(): IClientMeta | null;
[16:02:41] typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 34
An accessor cannot be declared in an ambient context.
L33: set clientMeta(value: IClientMeta | null);
L34: get clientMeta(): IClientMeta | null;
L35: set peerMeta(value: IClientMeta | null);
[16:02:41] typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 35
An accessor cannot be declared in an ambient context.
L34: get clientMeta(): IClientMeta | null;
L35: set peerMeta(value: IClientMeta | null);
L36: get peerMeta(): IClientMeta | null;
[16:02:41] typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 36
An accessor cannot be declared in an ambient context.
L35: set peerMeta(value: IClientMeta | null);
L36: get peerMeta(): IClientMeta | null;
L37: set handshakeTopic(value: string);
[16:02:41] typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 37
An accessor cannot be declared in an ambient context.
L36: get peerMeta(): IClientMeta | null;
L37: set handshakeTopic(value: string);
L38: get handshakeTopic(): string;
[16:02:41] typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 38
An accessor cannot be declared in an ambient context.
L37: set handshakeTopic(value: string);
L38: get handshakeTopic(): string;
L39: set handshakeId(value: number);
[16:02:41] typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 39
An accessor cannot be declared in an ambient context.
L38: get handshakeTopic(): string;
L39: set handshakeId(value: number);
L40: get handshakeId(): number;
[16:02:41] typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 40
An accessor cannot be declared in an ambient context.
L39: set handshakeId(value: number);
L40: get handshakeId(): number;
L41: get uri(): string;
[16:02:41] typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 41
An accessor cannot be declared in an ambient context.
L40: get handshakeId(): number;
L41: get uri(): string;
L42: set uri(value: string);
[16:02:41] typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 42
An accessor cannot be declared in an ambient context.
L41: get uri(): string;
L42: set uri(value: string);
L43: set chainId(value: number);
[16:02:41] typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 43
An accessor cannot be declared in an ambient context.
L42: set uri(value: string);
L43: set chainId(value: number);
L44: get chainId(): number;
[16:02:41] typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 44
An accessor cannot be declared in an ambient context.
L43: set chainId(value: number);
L44: get chainId(): number;
L45: set networkId(value: number);
[16:02:41] typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 45
An accessor cannot be declared in an ambient context.
L44: get chainId(): number;
L45: set networkId(value: number);
L46: get networkId(): number;
[16:02:41] typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 46
An accessor cannot be declared in an ambient context.
L45: set networkId(value: number);
L46: get networkId(): number;
L47: set accounts(value: string[]);
[16:02:41] typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 47
An accessor cannot be declared in an ambient context.
L46: get networkId(): number;
L47: set accounts(value: string[]);
L48: get accounts(): string[];
[16:02:41] typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 48
An accessor cannot be declared in an ambient context.
L47: set accounts(value: string[]);
L48: get accounts(): string[];
L49: set rpcUrl(value: string);
[16:02:41] typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 49
An accessor cannot be declared in an ambient context.
L48: get accounts(): string[];
L49: set rpcUrl(value: string);
L50: get rpcUrl(): string;
[16:02:41] typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 50
An accessor cannot be declared in an ambient context.
L49: set rpcUrl(value: string);
L50: get rpcUrl(): string;
L51: set connected(value: boolean);
[16:02:41] typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 51
An accessor cannot be declared in an ambient context.
L50: get rpcUrl(): string;
L51: set connected(value: boolean);
L52: get connected(): boolean;
[16:02:41] typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 52
An accessor cannot be declared in an ambient context.
L51: set connected(value: boolean);
L52: get connected(): boolean;
L53: set pending(value: boolean);
[16:02:41] typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 53
An accessor cannot be declared in an ambient context.
L52: get connected(): boolean;
L53: set pending(value: boolean);
L54: get pending(): boolean;
[16:02:41] typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 54
An accessor cannot be declared in an ambient context.
L53: set pending(value: boolean);
L54: get pending(): boolean;
L55: get session(): {
[16:02:41] typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 55
An accessor cannot be declared in an ambient context.
L54: get pending(): boolean;
L55: get session(): {
L56: connected: boolean;
[16:02:41] typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 68
An accessor cannot be declared in an ambient context.
L67: };
L68: set session(value: {
L69: connected: boolean;
[16:02:41] typescript: node_modules/detect-browser/index.d.ts, line: 13
Initializers are not allowed in ambient contexts.
L12: readonly type = "browser";
L13: constructor(name: Browser, version: string, os: OperatingSystem | null);
[16:02:41] typescript: node_modules/detect-browser/index.d.ts, line: 18
Initializers are not allowed in ambient contexts.
L17: readonly type = "node";
L18: readonly name: 'node';
L19: readonly os: NodeJS.Platform;
[16:02:41] typescript: node_modules/detect-browser/index.d.ts, line: 28
Initializers are not allowed in ambient contexts.
L27: readonly type = "bot-device";
L28: constructor(name: Browser, version: string, os: OperatingSystem | null, bot: string);
[16:02:41] typescript: node_modules/detect-browser/index.d.ts, line: 32
Initializers are not allowed in ambient contexts.
L31: readonly type = "bot";
L32: readonly bot: true;
L33: readonly name: 'bot';
[16:02:41] typescript: node_modules/detect-browser/index.d.ts, line: 39
Initializers are not allowed in ambient contexts.
L38: readonly type = "react-native";
L39: readonly name: 'react-native';
L40: readonly version: null;
[16:02:41] dev server running: http://localhost:8100/
[16:02:41] copy finished in 12.68 s
[16:02:41] Failed to open the browser: Command failed: xdg-open "http://localhost:8100" /usr/bin/xdg-open: 869:
www-browser: not found /usr/bin/xdg-open: 869: links2: not found /usr/bin/xdg-open: 869: elinks: not found
/usr/bin/xdg-open: 869: links: not found /usr/bin/xdg-open: 869: lynx: not found /usr/bin/xdg-open: 869:
w3m: not found xdg-open: no method available for opening 'http://localhost:8100'
(node:139388) UnhandledPromiseRejectionWarning: Error: A watch configured to watch the following paths failed to start. It likely that a file referenced does not exist: /root/wallet/src/assets/**/*, /root/wallet/src/index.html, /root/wallet/src/manifest.json, /root/wallet/src/service-worker.js, /root/wallet/node_modules/ionicons/dist/fonts/**/*, /root/wallet/node_modules/ionic-angular/fonts/**/*, /root/wallet/node_modules/ionic-angular/polyfills/polyfills.js, /root/wallet/node_modules/sw-toolbox/sw-toolbox.js
at new BuildError (/root/wallet/node_modules/@ionic/app-scripts/dist/util/errors.js:16:28)
at Timeout._onTimeout (/root/wallet/node_modules/@ionic/app-scripts/dist/watch.js:71:20)
at ontimeout (timers.js:436:11)
at tryOnTimeout (timers.js:300:5)
at listOnTimeout (timers.js:263:5)
at Timer.processTimers (timers.js:223:10)
(node:139388) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:139388) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
please help me, Next, How should I do to solve those error.
please tell me. Which version I should choose for nodejs? I hope you write answer to README.
First, I choose node:10.
I execute command following command:
than print a lot of error infomation:
please help me, Next, How should I do to solve those error.