title | description | position | category |
---|---|---|---|
Installation |
Serverless Devs Tool installation and upgrade |
2 |
Overview |
Install via npm 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.
$ npm install @serverless-devs/s -g
Or install via yarn
$ 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 commandln -s serverless-devs installation location /usr/bin
, serverless-devs installation location can be found byfind / -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 commandsudo npm install @serverless-devs/s -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
.
Open the releases page, select a release compressed package link corresponding to the platform in the latest version, and click to download directly.
After downloading locally, unzip it and use it directly.
s-*-win.exe.zip
file (where * represents the version number, such as 2.1.9).s-*-win.exe.zip
to get s-*.win.exe
file, rename it to s.exe
.C:\WINDOWS\System32
s.exe --version
, and check the returned version number to verify whether the installation is successful.s-*-linux.zip
file (where * represents the version number, such as 2.1.9).$ unzip s-linux.zip
Archive: s-2.1.9-linux.zip
inflating: s-2.1.9-linux
$ mv s-*-linux /usr/local/bin/s
$ s -v
@serverless-devs/s: 2.1.9
s-*-macos.zip
file (where * represents the version number, such as 2.1.9).$ unzip s-macos.zip
Archive: s-2.1.9-macos.zip
inflating: s-2.1.9-macos
$ mv s-*-macos /usr/local/bin/s
$ s -v
@serverless-devs/s: 2.1.9
For Mac/Linux users
$ curl -o- -L http://cli.so/install.sh | bash
Serverless Devs developer tools will be updated and upgraded from time to time. When developers use Serverless Devs developer tools, they can be aware of the latest version according to system reminders.
After the client perceives the system upgrade, the developer can use the command npm i -g @serverless-devs/s
to update, or use Release View the specific content of the upgrade to determine whether to perform this upgrade.
For example: My current Serverless Devs version is
2.0.89
. After the system is upgraded, I will use the Serverless Devs developer tool, and the tool will give a corresponding reminder:╭───────────────────────────────────────────────╮ │ │ │ Update available 2.0.89 → 2.0.90 │ │ Run npm i -g @serverless-devs/s to update │ │ │ ╰───────────────────────────────────────────────╯At this point, just follow the reminder to update the tool.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。