project environment: create-react-app with typescript template
dev environment: windows10, wsl2, node(14.16.0 ver), npm(7.5.6 ver)

-
When I run [apollo client:codegen src/generated_api_types --target=typescript --outputFlat], it works fine. All the interfaces are generated perfectly.
-
But if I run the same command as [npm run apollo:codegen], it doesn't work.
-
The same problem arises if remove the --outputFlat option, so I guess that's not the cause.
Also, I found another person with the same issue online. Can someone help me how to fix it?