Skip to content

Commit

Permalink
commit by Serverless devs docs 11-10-2023 6:45:29
Browse files Browse the repository at this point in the history
  • Loading branch information
serverless-devs committed Nov 10, 2023
1 parent e14ef2b commit b36605d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions content/en/serverless-devs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ category: 'Overview'
Install via [npm](https://www.npmjs.com/) package management: applicable to Windows, Mac, and Linux platforms that have been pre-installed with npm. Execute the following commands on Windows, Mac, and Linux platforms to install Serverless Devs Tool.

```shell script
$ npm install @serverless-devs/s -g
$ npm install @serverless-devs/s3 -g
```
Or install via [yarn](https://yarnpkg.com/)

Expand All @@ -30,7 +30,7 @@ $ yarn global add @serverless-devs/s

> **illustrate**:
> - If you execute the command under Linux or macOS and report an error and the error message is `Command not found`, please execute the command `ln -s serverless-devs installation location /usr/bin`, serverless-devs installation location can be found by `find / -name s`.
> - If an error is reported when executing this command under Linux and the error message is `Error: EACCES: permission denied`, please execute the command `sudo npm install @serverless-devs/s -g`.
> - If an error is reported when executing this command under Linux and the error message is `Error: EACCES: permission denied`, please execute the command `sudo npm install @serverless-devs/s3 -g`.
> - If you have a slow installation process in mainland, you can consider using Taobao npm source. The installation command is `npm --registry=https://registry.npm.taobao.org install @serverless-devs/s -g`.
### Install by downloading the binary
Expand Down
2 changes: 1 addition & 1 deletion content/en/serverless-devs/quick_start.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ This quick start case takes [Alibaba Cloud Function Computing](https://github.co
- Step 1: Install Node.js (>=12.0.0) and NPM package management tool;
- Step 2: Install Serverless Devs developer tools;
```shell script
$ npm install @serverless-devs/s -g
$ npm install @serverless-devs/s3 -g
```
- Step 3: You can use `s -v` to judge whether the tool is installed successfully. If the installation is successful, you can see the corresponding version information, for example:
```shell script
Expand Down
1 change: 0 additions & 1 deletion content/zh/serverless-devs/flow.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

---
title: Yaml Flow
description: '操作顺序'
Expand Down
4 changes: 2 additions & 2 deletions content/zh/serverless-devs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ category: '概述'
通过 [npm](https://www.npmjs.com/) 包管理安装:适用于已经预装了 npm 的 Windows、Mac、Linux 平台。在 Windows、Mac、Linux 平台执行以下命令安装 Serverless Devs Tool工具。

```shell script
$ npm install @serverless-devs/s3 -g
$ npm install @serverless-devs/s33 -g
```
或者 通过 [yarn](https://yarnpkg.com/) 进行安装

Expand All @@ -30,7 +30,7 @@ $ yarn global add @serverless-devs/s3

> **说明**:
> - 如果在 Linux 或 MacOS 下执行该命令报错且报错信息为 `未找到命令`,请执行命令 `ln -s serverless-devs安装位置 /usr/bin`,serverless-devs安装位置可以通过`find / -name s` 查找。
> - 如果在 Linxu 下执行该命令报错且报错信息为 `Error: EACCES: permission denied`,请执行命令 `sudo npm install @serverless-devs/s3 -g`
> - 如果在 Linxu 下执行该命令报错且报错信息为 `Error: EACCES: permission denied`,请执行命令 `sudo npm install @serverless-devs/s33 -g`
> - 如果安装过程较慢,可以考虑使用淘宝 npm 源,安装命令为 `npm --registry=https://registry.npm.taobao.org install @serverless-devs/s3 -g`
### 通过下载二进制安装
Expand Down
2 changes: 1 addition & 1 deletion content/zh/serverless-devs/quick_start.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ category: '概述'
- 第一步:安装 Node.js(>=12.0.0) 与 NPM 包管理工具;
- 第二步:安装 Serverless Devs 开发者工具;
```shell script
$ npm install @serverless-devs/s3 -g
$ npm install @serverless-devs/s33 -g
```
- 第三步:可以通过`s -v`判断工具是否安装成功,如果安装成功可以看到相对应的版本信息,例如:
```shell script
Expand Down

0 comments on commit b36605d

Please sign in to comment.