我想在使用tensorflow/tfjs-node时安装类型,因为我正在使用Typescript。
我是通过npm install @tensorflow/tfjs-node安装的
但他们中没有一个人在努力安装类型:
npm install --save @types/tensorflow/tfjs-node
npm install --save @types/tfjs-node发布于 2019-05-28 00:46:52
你不需要单独安装这些类型,因为它们已经bundled with the main repository了。
要从@types/...中删除旧的类型,请使用npm uninstall。之后,当使用TypeScript并通过import导入数据时,它应该会自动选取正确的类型。
https://stackoverflow.com/questions/56318261
复制相似问题