tmcw / gedcom

A simple GEDCOM parser that focuses on translating GEDCOM structure into JSON.
https://tmcw.github.io/parse-gedcom/live/
ISC License
159 stars 31 forks source link

getting syntax error attempting to run it with npx on Ubuntu #47

Open lschierer opened 2 years ago

lschierer commented 2 years ago

I get a syntax error when I attempt to run this in an otherwise empty directory created just for trying to reproduce the error:

luke@opus95:/tmp$ mkdir gedcom
luke@opus95:/tmp$ cd gedcom/
luke@opus95:/tmp/gedcom$ npm i gedcom
npm WARN deprecated @types/minimist-options@4.0.1: This is a stub types definition. minimist-options provides its own type definitions, so you do not need this installed.
npm WARN saveError ENOENT: no such file or directory, open '/tmp/gedcom/package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open '/tmp/gedcom/package.json'
npm WARN gedcom No description
npm WARN gedcom No repository field.
npm WARN gedcom No README data
npm WARN gedcom No license field.

+ gedcom@3.0.0
added 211 packages from 185 contributors and audited 211 packages in 19.273s

24 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

luke@opus95:/tmp/gedcom$ npx parse-gedcom -s json gramps.ged gramps.json
npx: installed 211 in 47.761s
/home/schierer/luke/.npm/_npx/180150/bin/parse-gedcom: 1: Syntax error: "(" unexpected
luke@opus95:/tmp/gedcom$ npm --version
6.14.15
luke@opus95:/tmp/gedcom$ 
lschierer commented 2 years ago

This is on a Ubuntu 20.04.3 LTS system.