ncbi / datasets

NCBI Datasets is a new resource that lets you easily gather data from across NCBI databases.
https://www.ncbi.nlm.nih.gov/datasets
Other
329 stars 39 forks source link

npm OpenAPI build script fails to run #378

Open pipparichter opened 2 weeks ago

pipparichter commented 2 weeks ago

I am running the npm script here in order to set up a Python library for working with NCBI datasets, but the build fails with this error:

SyntaxError: Unexpected token '.' at wrapSafe (internal/modules/cjs/loader.js:915:16) at Module._compile (internal/modules/cjs/loader.js:963:27) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10) at Module.load (internal/modules/cjs/loader.js:863:32) at Function.Module._load (internal/modules/cjs/loader.js:708:14) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12) at internal/main/run_main_module.js:17:47 I have never used OpenAPI before, and am wondering if anyone knows what could have caused this. Thanks in advance!

ericcox1 commented 1 week ago

Hi @pipparichter,

Thanks for opening this issue.

We were unable to reproduce this issue. Please check what version of nodejs you are using. We are currently using version 18 of nodejs and we recommend using that version.

Best, Eric

Eric Cox, PhD [Contractor] (he/him/his) NCBI Datasets NIH/NLM/NCBI eric.cox@nih.gov