scipy-conference / scipy_proceedings

Tools used to generate the SciPy conference proceedings
Other
228 stars 530 forks source link

Problem Previewing Manuscript With Myst #905

Closed hp2500 closed 4 months ago

hp2500 commented 4 months ago

Hi there, I am trying to work on my proceedings manuscript and preview files with myst. I have installed mystmd and node, and closely followed the tutorial and other instructions. However, I am running into errors whenever I try to get the preview running.

๐Ÿ” Querying template metadata from https://api.mystmd.org/templates/site/myst/article-theme ๐Ÿ• Fetching template from https://github.com/myst-templates/article-theme/archive/refs/heads/main.zip ๐Ÿ’พ Saved template to path _build\templates\site\myst\article-theme โคต๏ธ Installing web libraries (can take up to 60 s) npm error code ENOTDIR

npm error syscall mkdir npm error path _build\templates\site\myst\article-theme\node_modules\@remix-run npm error errno -4052 npm error ENOTDIR: not a directory, mkdir '_build\templates\site\myst\article-theme\node_modules\@remix-run'

npm error A complete log of this run can be found in: C:\Users\heinr\AppData\Local\npm-cache_logs\2024-05-22T23_26_50_344Z-debug-0.log

Command failed: npm install npm error code ENOTDIR npm error syscall mkdir npm error path _build\templates\site\myst\article-theme\node_modules\@remix-run npm error errno -4052 npm error ENOTDIR: not a directory, mkdir '_build\templates\site\myst\article-theme\node_modules\@remix-run' npm error A complete log of this run can be found in: C:\Users\heinr\AppData\Local\npm-cache_logs\2024-05-22T23_26_50_344Z-debug-0.log

Myst CLI Versions:

Are you familiar with this problem. Do you have any recommendations on how to fix it?

fwkoch commented 4 months ago

Hey @hp2500 - thanks for posting your issue!

One possible cause of this error message may be related to running npm in a folder synced with google drive. Does this happen to be the case with your manuscript content...? If so, can you copying your files over to a local-only folder and try the build again there?

If this is not the case, we will need to dig a little more; can run myst in debug mode myst start -d and see if there is extra information logged to the console that you can copy here?

stevejpurves commented 4 months ago

@hp2500 I've tried to reproduce this on a Windows 11 PC matching the node, npm and myst versions you have but can't reproduce the issue you are seeing :( .

If you can give us some more info on your setup and as @fwkoch mentioned whether you have network or synced folders in the mix somehow, that would be great.

hp2500 commented 4 months ago

Thank you very much for your help with this @fwkoch @stevejpurves . My repo is indeed in a google drive directory. I will change the directory and try again. Your guidance is much appreciated.

hp2500 commented 4 months ago

Confirming that I am now able to build the doc! Thank you for your help!

rowanc1 commented 4 months ago

Glad this is fixed! The _build file shouldn't be committed to Git, no. It is already added to the .gitignore so you shouldn't need to delete it!