安装fun

IT
IT
IT
352
文章
1
评论
2020年3月22日19:08:47 评论 2,242 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
  • 除非特殊声明,本站文章均为原创,转载请务必保留本文链接
Centos7.9安装jumpserverV2.6.2 jumpserver

Centos7.9安装jumpserverV2.6.2

简述 使用官方提供的一键安装自带docker部署,最后简单配置下即可。 安装目录在 /opt/jumpserver-installer-v2.6.2 系统 # cat /etc/redhat-rele...
Centos7安装frp CentOS

Centos7安装frp

下载 官网下载地址 https://github.com/fatedier/frp 解压 # tar -xvf frp_0.34.3_linux_arm64.tar 移动至 /usr/local # ...