akmorrow13 / genomicviz

A python widget for visualization of genomic data.
1 stars 1 forks source link

error when building #1

Open jpdna opened 7 years ago

jpdna commented 7 years ago

Following the install instructions in the README, when I run npm run build I get the following error

HG-01931188-LM1:pileup.js paschalj$ npm run build

> pileup@0.6.8 build /Users/paschalj/test9/genomicviz/genomicviz/pileup.js
> ./scripts/build.sh

SyntaxError: src/main/AbstractFile.js: Unexpected token, expected , (22:16)
  20 |   }
  21 |
> 22 |   getBytes(start: number, length: number):Object {//: Q.Promise<ArrayBuffer> {
     |                 ^
  23 |     throw new TypeError("Method getBytes is not implemented");
  24 |   }
  25 |
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! pileup@0.6.8 build: `./scripts/build.sh`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the pileup@0.6.8 build 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!     /Users/paschalj/.npm/_logs/2017-07-28T11_12_02_350Z-debug.log
akmorrow13 commented 7 years ago

The setup for pileup.js on GitHub is: git clone https://github.com/hammerlab/pileup.js.git cd pileup.js npm install npm run build

Try running this. My guess is we forgot npm install.