使用cxsd将.xsd转换为TypeScript,不能识别cxsd

我正在尝试使用npm库cxsd从xsd文件创build打印稿定义。 我已经通过npm安装了windows-build-tools为cxsd提供了所需的工具。 当我尝试跑步

npm run cxsd http://schemas.opengis.net/wfs/1.1.0/wfs.xsd 

如cxsd的GitHub( https://github.com/charto/cxsd )所述,我得到这个错误

 'csxd' is not recognized as an internal or external command,operable program or batch file. 

我已经在package.json中包含了脚本“cxsd”:“csxd”。

例如,添加全局的npm包dir到你的pathC:\npm 。 它应该包含cxsd.cmd`和cxsd – @ AdrianLeonhard