serverless-vscode
serverless-vscode copied to clipboard
部署函数报错 TypeError: require(...).internalModuleStat is not a function
从云端下载到本地的函数,更新内容之后点击部署报错
PS E:\gitee\python\aliyun-fc> ^C
PS E:\gitee\python\aliyun-fc>
PS E:\gitee\python\aliyun-fc> cd "e:\gitee\python\aliyun-fc"
PS E:\gitee\python\aliyun-fc> & "~/.aliyun-serverless/bin/fun.exe" deploy test -t e:\gitee\python\aliyun-fc\template.yml -y
internal/modules/cjs/loader.js:46
const internalModuleStat = function (f) { return require('fs').internalModuleStat(f); };
^
TypeError: require(...).internalModuleStat is not a function
at internalModuleStat (internal/modules/cjs/loader.js:46:64)
at stat (internal/modules/cjs/loader.js:119:18)
at Function.Module._findPath (internal/modules/cjs/loader.js:490:14)
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:782:27)
at Function.Module._load (internal/modules/cjs/loader.js:688:27)
at Module.require (internal/modules/cjs/loader.js:850:19)
at Module._preloadModules (internal/modules/cjs/loader.js:1145:12)
at loadPreloadModules (internal/bootstrap/pre_execution.js:448:5)
at prepareMainThreadExecution (internal/bootstrap/pre_execution.js:67:3)
at internal/bootstrap/pkg.js:7:1
PS E:\gitee\python\aliyun-fc>