tencentyun / qcloud-documents

腾讯云官方文档

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Could not download template. Ensure that you are using the latest version of Serverless Framework: Timeout awaiting 'request' for 30000ms

hugetiny opened this issue · comments

现在官方文档,serverless的github中文文档都不对,根本无法创建工程

npm i serverless -g之后

serverless

Creating a new serverless project

? What do you want to make? (Use arrow keys)

AWS - Node.js - Starter
AWS - Node.js - HTTP API
AWS - Node.js - Scheduled Task
AWS - Node.js - SQS Worker
AWS - Node.js - Express API
AWS - Node.js - Express API with DynamoDB
AWS - Python - Starter
AWS - Python - HTTP API
AWS - Python - Scheduled Task
AWS - Python - SQS Worker
AWS - Python - Flask API
AWS - Python - Flask API with DynamoDB
Other

1.无论我环境变量还是当前目录创建一个.env设置SERVERLESS_PLATFORM_VENDOR=tencent都无法选择腾讯云的模板

2.我又尝试了

serverless create -t tencent-nodejs
又会报创建错误

PS C:\Users\hugetiny\vscode\tencent> serverless create -t tencent-nodejs
Environment: win32, node 16.16.0, framework 3.22.0, plugin 6.2.2, SDK 4.3.2
Docs: docs.serverless.com
Support: forum.serverless.com
Bugs: github.com/serverless/serverless/issues

Error:
Could not download template. Ensure that you are using the latest version of Serverless Framework: Timeout awaiting 'request' for 30000ms