错误 TS2688:找不到“bson"的类型定义文件 [英] error TS2688: Cannot find type definition file for 'bson'

查看:63
本文介绍了错误 TS2688:找不到“bson"的类型定义文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我找不到bson"的类型定义文件,出现 TS2688 错误:找不到bson"的类型定义文件在此处输入图片描述

I can not find the type definition file for 'bson' "with a TS2688 error: Can not find type definition file for 'bson' enter image description here

推荐答案

你试过 npm i @types/bson --save-dev 吗?https://www.npmjs.com/package/@types/bson

Have you tried npm i @types/bson --save-dev? https://www.npmjs.com/package/@types/bson

这篇关于错误 TS2688:找不到“bson"的类型定义文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆