Error: Cannot find module 'gettime'
17:50:05.623 at Function.Module._resolveFilename (module.js:548:15)
17:50:05.623 at Function.Module._load (module.js:475:25)
17:50:05.624 at Module.require (module.js:597:17)
17:50:05.624 at require (internal/module.js:11:18)
17:50:05.624 at Object.<anonymous> (/tmp/function/__index.js:2:17)
17:50:05.624 at Module._compile (module.js:653:30)
17:50:05.624 at Object.Module._extensions..js (module.js:664:10)
17:50:05.624 at Module.load (module.js:566:32)
17:50:05.624 at tryModuleLoad (module.js:506:12)
17:50:05.625 at Function.Module._load (module.js:498:3)
云函数下的node_modules已经存在一模一样的公共模块,已经管理模块的公共依赖,package.json
"dependencies": {
"gettime": "file:../common/gettime"
}
全部配置了,上传了云函数和公共模块,本地云函数可以,云端就不行,这是日志