解决方法一: 手动指定编译器选项的 typeRoots 属性: { "compilerOptions": { typeRoots: ["node_modules/@types"] } } 解决方法二: 开启编译器选项的 skipLibCheck 属性 { "compilerOptions": { "skipLibCheck": true } }