繁体   English   中英

npm install => 找不到“节点”的类型定义文件

[英]npm install => Cannot find type definition file for 'node'

只需按照日历中的步骤构建浏览器包

克隆 repo => 好的

然后

$ cd src/apis/calendar
$ npm install

我收到此错误:

@google/calendar@0.1.0 准备 /home/mick/projects/google-api-nodejs-client/src/apis/calendar npm run compile @google/calendar@0.1.0 compile /home/mick/projects/google- api-nodejs-client/src/apis/calendar tsc -p 。 node_modules/gaxios/build/src/common.d.ts:1:23 - 错误 TS2688:找不到“节点”的类型定义文件。

尝试删除node_modules文件夹然后执行 npm install

希望这会解决您的问题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM