windows安装 阿里云的Fun工具


由于项目使用到了 函数计算,特此了解到了需要安装 阿里云的Fun工具

 

Fun 是一个用于支持 Serverless 应用部署的工具,能帮助您便捷地管理函数计算、API 网关、日志服务等资源。它通过一个资源配置文件(template.yml),协助您进行开发、构建、部署操作。

 

windows安装教程如下:

通过 npm 安装 Fun

安装它的方式是通过 npm:

$ npm install @alicloud/fun -g

安装完成之后,会有一个 fun 命令提供使用。输入 fun 命令可以查看帮助信息:

$ fun -h

  Usage: fun [options] [command]

  The fun tool use template.yml to describe the API Gateway & Function Compute things, then publish it online. Options: -v, --version output the version number -h, --help output usage information Commands: config Configure the fun validate [options] Validate a fun template deploy Deploy a project to AliCloud build Build the dependencies

 

添加全局环境变量,使其在 各个目录都可使用

因为通过npm安装,会将 Fun工具安装到 nodejs中;

假设nodejs安装在 D:\nodejs,则Fun启动的命令文件在D:\nodejs\node_global 文件夹下

 

系统环境变量添加如下:

 

 

这样便可以在任何路径下  方便的玩耍了。。。

 

 

 

 

相关网址:

https://github.com/alibaba/funcraft/blob/master/docs/usage/installation-zh.md?spm=a2c4g.11186623.2.18.4c2028feNrSD46&file=installation-zh.md

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM