berkeley-cdss / course-site-myst

A MyST-based course website template
0 stars 1 forks source link

Missing js-yaml #7

Closed rgiordan closed 10 months ago

rgiordan commented 10 months ago

When I first forked and ran myst init, I got an error

⛔️ schedule.mjs Error reading plugin: Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'js-yaml' imported from schedule.mjs
⛔️ index.md:60 unknown directive: schedule

As a consequence the schedule module didn't load. I fixed the problem by running npm install js-yaml inside the conda environment, and then re-running myst init.

Is it possible to include JS packages in enivironment.yml? If not maybe we should make a note in the README?

ryanlovett commented 10 months ago

Thanks for the report @rgiordan ! The schedule plugin was a later edition and I neglected to add documentation for it.

Unfortunately one cannot use the environment.yml file to install conda packages. There is a package.json file however, so one can run npm install at the top level. I need to add this to the documentation.