But npm doesn’t work with package.hugo.json. If you run npm install
in a directory with package.hugo.json
and without package.json
, you get an error:
❯ npm install
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /Users/Will/Developer/paige/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/Users/Will/Developer/paige/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/Will/.npm/_logs/2023-02-21T05_36_12_821Z-debug-0.log
So I’m not clear on how package.hugo.json
is actually used.