rdfjs / N3.js

Lightning fast, spec-compatible, streaming RDF for JavaScript
http://rdf.js.org/N3.js/
Other
676 stars 127 forks source link

`npm ci` fails on node 14 when package build in node 19 includes `n3` dependency #317

Closed jeswr closed 1 year ago

jeswr commented 1 year ago

To reproduce run nvm use 19 && npm init -y && npm i n3 && nvm use 14 && npm ci. The final npm ci command results in the error

npm ERR! Cannot read property 'n3' of undefined

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/jesse/.npm/_logs/2022-12-29T02_17_59_834Z-debug.log
jeswr commented 1 year ago

The exact versions that this uses on my machine are

v19.3.0 (npm v9.2.0)
v14.20.0 (npm v6.14.17)
RubenVerborgh commented 1 year ago

Was it https://github.com/rdfjs/N3.js/issues/310 by any chance?

jeswr commented 1 year ago

Ah nevermind; this is not a problem specific to n3 (the same happens with any other package I try, such as is-even). I have filed a ticket with the npm team at https://github.com/npm/cli/issues/6023