Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

部署函数报错 TypeError: require(...).internalModuleStat is not a function #254

Open
dagaoya opened this issue Sep 25, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@dagaoya
Copy link

dagaoya commented Sep 25, 2020

从云端下载到本地的函数,更新内容之后点击部署报错

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> 
@dagaoya dagaoya added the bug Something isn't working label Sep 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants