首页 > Windows开发 > 详细

windows安装 阿里云的Fun工具

时间:2019-11-07 20:46:29      阅读:107      评论:0      收藏:0      [点我收藏+]

由于项目使用到了 函数计算,特此了解到了需要安装 阿里云的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

 

windows安装 阿里云的Fun工具

原文:https://www.cnblogs.com/rgcLOVEyaya/p/RGC_LOVE_YAYA_1215_1days.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!