Closed hsanjuan closed 3 years ago
It seems running npm install hugo-bin
actually puts hugo in the right place. Don't ask me why the deps script which runs npm install
does not do it.
What command did you run? It seems like we need to explicitly run hugo instead of relying on the path.
make publish
.
hugo was not installed at all in node_modules/hugo-bin/vendor/hugo
. It only appeared there after doing npm install hugo-bin
manually. But deps_check.sh
already does npm install --no-audit --progress=false
and.. ohhh hugo-bin is in devDependencies
, not in dependencies
. Perhaps that is why it does not get installed?
I can't reproduce. The make deps
target (run by make publish
, make site
, etc.) installs hugo into node_modules/.bin/
.
installs hugo into node_modules/.bin/.
<- thats not the hugo binary, that is a javascript script that runs the hugo binary, which should live in node_modules/hugo-bin/vendor/hugo
.
(I learned it the hard way by symlinking that to node_modules/hugo-bin/vendor/hugo).
Hm. I'm still seeing node_modules/hugo-bin/vendor/hugo
. I've re-cloned, uninstalled hugo, deleted all my node caches, etc.
Maybe something was dirty? What version of npm are you using?
Maybe https://github.com/ipfs/distributions/pull/341 helps?
@hsanjuan it's sounding like you're using a pretty old version of node (likely due to Debian's "never update anything" policy).
I use OpenSuSE and I have all the versions. :)
I guess old npm or something was just buggy.
I guess this is my fault for not having some very concrete version of node/npm that knows how to install things in a very concrete way that knows where it itself places its own binaries?
Why is javascript ecosystem so broken?