Issue with running Hugo using NPM scripts #82
Replies: 6 comments
-
In which file did you place the alias function? |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
I suspect |
Beta Was this translation helpful? Give feedback.
-
Upon further review and research, this may not be possible without creating a separate script that npm can call directly, and that's not something I'm going to spend any time on. Moving this to discussions. |
Beta Was this translation helpful? Give feedback.
-
Thank you Joe, for your efforts. |
Beta Was this translation helpful? Give feedback.
-
Since you use npm, I would recommend using hugo-extended or hugo-bin. |
Beta Was this translation helpful? Give feedback.
-
Hi Joe. First of all, thank you for creating this great tool.
I am using HVM for a Hugo project.
I also have the following in
package.json
:When I run
npm run dev
, I get the following error:However, if I run
hugo server --navigateToChanged --gc
directly in the terminal, it works perfectly fine.It would be great if HVM worked with
npm run *
, since I will not have to remember lengthy options (like--navigateToChanged
).Beta Was this translation helpful? Give feedback.
All reactions