Open MaxmaxmaximusAWS opened 3 years ago
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
this not work![image](https://user-images.githubusercontent.com/69426460/95286541-44e0b780-086c-11eb-9c67-84e7586c0636.png)
but if i ass
npx
before@react-three/gltfjsx
, all works correctly