gltfjsx
gltfjsx copied to clipboard
Add cli support (without npx)
cant find
react-three
programm
this not work
but if i ass npx
before @react-three/gltfjsx
, all works correctly
that is to be expected and the nominal behavior of npm scripts, you could write them either :
"convert": "npx @react-three/gltfjsx myasset.glb"
or
"convert": "gltfjsx myasset.glb"
to know the names of available binaries, look in you ./node_modules/.bin/
folder; package and binary usually have the same name but not always (as it is the case here).
starting to think the npm namespace thing (react-three/gltfjsx) is a mistake. hard to type, serves no purpose, confusing as hell.
Just had a similar problem. I also tried running
npx gltfjsx scene-draco.gltf --draco --compress
directly in the terminal like in this Twitter demo. Although there is no explicit npm ERR, the output is nowhere to be found. Did I misunderstand the usage of this tool?
fixed