简体   繁体   English

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

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

Just following the steps from calendar for building a browser bundle只需按照日历中的步骤构建浏览器包

cloning the repo => ok克隆 repo => 好的

then然后

$ cd src/apis/calendar
$ npm install

I get this error :我收到此错误:

@google/calendar@0.1.0 prepare /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 . @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 - error TS2688: Cannot find type definition file for 'node'. node_modules/gaxios/build/src/common.d.ts:1:23 - 错误 TS2688:找不到“节点”的类型定义文件。

try to delete node_modules folder then execute npm install尝试删除node_modules文件夹然后执行 npm install

Hope this will fix your issue.希望这会解决您的问题。

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

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