Skip to content
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

Error while trying to compile on Debian buster #79

Open
Nennala opened this issue Oct 18, 2017 · 1 comment
Open

Error while trying to compile on Debian buster #79

Nennala opened this issue Oct 18, 2017 · 1 comment

Comments

@Nennala
Copy link

Nennala commented Oct 18, 2017

Hi, I've tried the method to compile the mblock soft because the .deb package have to many problems on Linux and it's a i386 library.

After installing npm and did the npm install i did npm run rebuild-serialport, npm run rebuild-hid, etc, but all the time I get that time of error with exactly the same token error :

`> [email protected] rebuild-hid /home/daphne/Documents/Applications/mBlock

electron-rebuild -f -w node-hid

/home/daphne/Documents/Applications/mBlock/node_modules/electron-rebuild/lib/src/rebuild.js:73
depKeys.push(...Object.keys(rootPackageJson.dependencies || {}));
^^^

SyntaxError: Unexpected token ...
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (/home/daphne/Documents/Applications/mBlock/node_modules/electron-rebuild/lib/src/cli.js:17:19)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)

npm ERR! [email protected] rebuild-hid: electron-rebuild -f -w node-hid
npm ERR! Exit status 1`

Did I make something wrong ? What I have to do if I want to fix that issue and finally have a functional mblock on Linux ?

@nzbart
Copy link

nzbart commented Nov 17, 2017

@Nennala I just managed to get the master branch building on the latest version of Debian Testing. I needed to install the following Debian packages:

  • libbluetooth-dev
  • libusb-1.0-0-dev

Installing these packages and then following the installation steps in the Readme should work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants