and when I updated version of gltf-pipeline in package.json , this issue has resolved but I have new issue :
Binary glTF version is not 1, my gltf was compressed with gltf-pipeline draco.
So updating gltf-pipeline separately might be a problem. The other thing is that by default running something through gltf pipeline should automatically convert it from glTF 1 to 2.
Does downloading a clean copy of the 3d-tiles-tools repo, running npm install and then running optimizeB3dm not work for you?