小编You*_*Dev的帖子

无法使用终端 Visual Studio 在本地服务器上启动谷歌云功能

我正在尝试开发我的第一个 Google Cloud Function,但想在本地构建和测试。我以前没有这样做过,我只是在学习,所以请耐心等待。

首先- 我创建了moralisaccount目录,使用默认配置创建了 package.json npm init,并安装了功能框架npm install @google-cloud/functions-framework

AMAC02CLCBTLEE:moralisaccount youthdev$ nvm use node
Now using node v17.3.0 (npm v8.3.0)
AMAC02CLCBTLEE:moralisaccount youthdev$ npm init
This utility will walk you through creating a package.json file.
It only covers the most common items, and tries to guess sensible defaults.

See `npm help init` for definitive documentation on these fields
and exactly what they do.

Use `npm install <pkg>` afterwards to install a package and
save …
Run Code Online (Sandbox Code Playgroud)

visual-studio node.js google-cloud-functions

4
推荐指数
1
解决办法
1361
查看次数