在使用nodejs尝试googleapis时出现错误。
npm install googleapis --save
我使用的代码:
const {google} = require('googleapis');
出现错误,例如:
internal/modules/cjs/loader.js:638
throw err;
^
Error: Cannot find module './types/standard'
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Module.require (internal/modules/cjs/loader.js:690:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object.<anonymous> (C:\Users\User1\Documents\shop-automation\node_modules\mime\index.js:4:27)
at Module._compile (internal/modules/cjs/loader.js:776:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
谢谢。