安装fun

IT
IT
IT
405
文章
1
评论
2020年3月22日19:08:47 评论 5,366 3012字阅读10分2秒

使用npm安装

[xiaoxin@iZ2zed99h19kmb7fgbjcghZ ~]$ sudo npm install @alicloud/fun -g
npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated superagent@3.8.3: Please note that v5.0.1+ of superagent removes User-Agent header by default, therefore you may need to add it yourself (e.g. GitHub blocks requests without a User-Agent header).  This notice will go away with v5.0.2+ once it is released.
/usr/local/node/node-v10.14.1-linux-x64/bin/fun -> /usr/local/node/node-v10.14.1-linux-x64/lib/node_modules/@alicloud/fun/bin/fun.js
 
> core-js@3.6.1 postinstall /usr/local/node/node-v10.14.1-linux-x64/lib/node_modules/@alicloud/fun/node_modules/@snyk/cocoapods-lockfile-parser/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"
 
Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
 
The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock
 
Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
 
 
> core-js@2.6.11 postinstall /usr/local/node/node-v10.14.1-linux-x64/lib/node_modules/@alicloud/fun/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"
 
Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
 
The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock
 
Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
 
 
> protobufjs@6.8.8 postinstall /usr/local/node/node-v10.14.1-linux-x64/lib/node_modules/@alicloud/fun/node_modules/protobufjs
> node scripts/postinstall
 
 
> @alicloud/fun@3.2.2 postinstall /usr/local/node/node-v10.14.1-linux-x64/lib/node_modules/@alicloud/fun
> node ./lib/check-version.js
 
+ @alicloud/fun@3.2.2
added 727 packages from 551 contributors in 231.167s
[xiaoxin@iZ2zed99h19kmb7fgbjcghZ ~]$ fun -h
Usage: fun [options] [command]
 
The fun command line provides a complete set of commands to define, develop,
test serverless applications locally, and deploy them to the Alibaba Cloud.
 
Options:
  --version      output the version number
  -v, --verbose  verbose output
  -h, --help     output usage information
 
Commands:
  config         Configure the fun
  init           Initialize a new fun project
  install        Install dependencies which are described in fun.yml
  build          Build the dependencies
  local          Run your serverless application locally
  edge           Run your serverless application at edge
  validate       Validate a fun template
  deploy         Deploy a fun application
  nas            Operate NAS file system
  package        Package a Function Compute application
  invoke         Remote invoke function
  help [cmd]     display help for [cmd]

配置config

[xiaoxin@iZ2zed99h19kmb7fgbjcghZ ~]$ fun config
? Aliyun Account ID 18926371sdsd512662
? Aliyun Access Key ID LTAI4FiXMPMNmX6ugBMBRsYu
? Aliyun Access Key Secret nZqxcAUMaMRhBR3Go11k6RdkDdt7Wi
? Default region name cn-beijing
? The timeout in seconds for each SDK client invoking 10
? The maximum number of retries for each SDK client 3
? Allow to anonymously report usage statistics to improve the tool over time? (Y/n) y
继续阅读
  • 我的QQ
  • QQ扫一扫
  • weinxin
  • 我的头条
  • 头条扫一扫
  • weinxin
CentOS 最后更新:2020-3-27
IT
  • 本文由 发表于 2020年3月22日19:08:47
  • 除非特殊声明,本站文章均为原创,转载请务必保留本文链接
Teambition 网盘与阿里云盘数据合并说明 CentOS

Teambition 网盘与阿里云盘数据合并说明

前言 Teambition 团队是阿里巴巴的一个创新产品团队,除了你熟悉的 Teambition App,「阿里云盘」也是我们的作品,它们都属于阿里云正在打造的新一代「云服务」。 过去几个月,我们投入...
CentOS8安装Jenkins CentOS

CentOS8安装Jenkins

简述 Jenkins 是最流行的,开源的,基于 Java 的自动化服务器,它允许你很容易的设置一个持续集成和持续发布的管道。 持续集成 (CI)是一个 DevOps 实践。当团队成员正常提交代码到版本...

您必须才能发表评论!