SST Start'TypeError:Getawscredentials不是函数。
我删除了/node_modules
和/package-lock.json
and did npm install
。
之后,当我进行npx SST start
时,我会遇到此错误: typeError:Getawscredentials不是函数。
如何解决这个问题?
I deleted /node_modules
and /package-lock.json
and did npm install
.
After this when I am doing npx sst start
I am getting this error:TypeError: getAwsCredentials is not a function.
How to solve this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
package.json
old:
“@@@serverless-stack/cli”:“ 0.69.2”,
“@@@@serverless-stack/resources”:“ 0.69.2”,
new:
“@@serverless-stack/cli”:“ 0.69.6 ”,
“@@serverless-stack/resources”:“ 0.69.6”,
Package.json
Old:
"@serverless-stack/cli": "0.69.2",
"@serverless-stack/resources": "0.69.2",
New:
"@serverless-stack/cli": "0.69.6",
"@serverless-stack/resources": "0.69.6",
我从
0.63.0
中更新了@code>@code>@code>@code>@code-site-env
,1.18.4
我发布此信息时答案和问题解决了,npm install @serverless-stack/static-site-env @最新
。在我的情况下,错误是:I updated
@serverless-stack/static-site-env
from0.63.0
to latest,1.18.4
as of the time I posted this answer and problem solved,npm install @serverless-stack/static-site-env@latest
. In my case the error was: