安装fun

IT
IT
IT
335
文章
1
评论
2020年3月22日19:08:47 评论 1,225 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
  • 除非特殊声明,本站文章均为原创,转载请务必保留本文链接
Eureka同步到nacos Nacos

Eureka同步到nacos

官方介绍文档地址 https://nacos.io/zh-cn/docs/nacos-sync.html 官方安装文档地址 https://nacos.io/zh-cn/docs/nacos-sync...
Eureka指定应用的instanceId为IP CentOS

Eureka指定应用的instanceId为IP

痛点 现在所有的应用指定的是服务器默认机器名称,对查看是哪一个服务IP或者单节点自动剔除服务不友好。 像如上图所示,想知道是哪一个节点,还得点开才能获取IP。 改造 全部改成自动获取服务器IP为ins...
阿里云网盘 CentOS

阿里云网盘

申请内测地址 https://survey.aliyun.com/apps/zhiliao/_o6XQjioM 官网地址 https://www.teambition.com/products/pan...
GitLab或Jenkins集成构建工具 CentOS

GitLab或Jenkins集成构建工具

集成构建工具 构建工具是用来将代码编译打包成制品的工具。例如前端项目我们一般使用npm进行打包,后端java项目我们一般使用maven、gradle进行打包。构建工具很多很多,但是集成到gitlab中...