siefkenj / unified-latex

Utilities for parsing and manipulating LaTeX ASTs with the Unified.js framework
MIT License
85 stars 20 forks source link

Need help setting up local development environment #38

Closed rrrnld closed 1 year ago

rrrnld commented 1 year ago

Heya,

I came across this package and it got me very excited. Amazing work you did!

I tired forking the repo and contributing some fixes upstream (I hit some issues with the ligature table), but I can't set up a local dev environment:

git clone https://github.com/siefkenj/unified-latex
cd unified-latex
npm install

Errors out after a while:

npm ERR! code ENOENT
npm ERR! syscall chmod
npm ERR! path /home/arne/dev/ems/unified-latex/node_modules/@unified-latex/unified-latex-cli/unified-latex-cli.mjs
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, chmod '/home/arne/dev/ems/unified-latex/node_modules/@unified-latex/unified-latex-cli/unified-latex-cli.mjs'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 

There is no node_modules folder in the root project folder, which I guess is why chmod is failing? I'm not sure if there's anything else I need to do to set up a local dev environment.

Thanks for any help!

siefkenj commented 1 year ago

Hmm. Very strange. I do not get that issue on my computer, but I also have @unified-latex/unified-latex-cli installed globally.

You can try what the CI does and run

npm ci

That should be the exact same thing as what happens here: https://github.com/siefkenj/unified-latex/actions/runs/5318277900/job/14391170634

rrrnld commented 1 year ago

This worked after updating npm from 7.24.2 to 9.8.1. Thanks!