bep / docuapi

Beautiful multilingual API documentation theme for Hugo
https://docuapi.netlify.app/
Other
750 stars 200 forks source link

add package.json with npm requirements and update README to reflect #42

Closed davidsneighbour closed 4 years ago

davidsneighbour commented 4 years ago

Note: the author line in package.json should reflect something like "Name " in the end, but I am not sure what to add there. Feel free to correct.

davidsneighbour commented 4 years ago

11:57:50 PM: Installing NPM modules using NPM version 3.10.10

in the Netlify logs has an utterly old version number... any idea why?

bep commented 4 years ago

any idea why?

The version of "things" in Netlify is connected to

  1. The build image used
  2. The time you created the site. You can update by setting GO_VERSION etc. env var, but they don't want to break existing sites.
davidsneighbour commented 4 years ago

This would be something you have to do (I am just pushing and your netlify team is creating previews). Please set NPM_VERSION to 6.13.4 in your docuapi environment and see if that solves the issue. If not, I will test locally tomorrow.

The log of the deploys is cutting off in the middle of installing packages, so something is going on there. Maybe adding debug parameters to the build command for dev environments will show more info.

bep commented 4 years ago

I have bumped the NPM version and triggered a rebuild.

davidsneighbour commented 4 years ago

perfect. working now. don't forget to add your authorinfo to package.json before merging.