1 - wapm概述
wapm概述
WAPM 是 WebAssembly Package Manager 的缩写
wapm介绍
wapm是WebAssembly的软件包管理器。它创建于2019年,作为一个开源项目,帮助WebAssembly开发者轻松分享打包的代码模块。
wapm注册表是WebAssembly、前端Web应用、移动应用、服务器以及WebAssembly社区的无数其他需求的开源代码包的公共集合。
wapm
是一个命令行客户端,允许开发者安装和发布这些软件包。
Wasmer, Inc.是托管和维护上述所有内容的公司。
Wasmer公司
Wasmer, Inc.成立于2018年,致力于WebAssembly社区的长期成功,这包括开源WebAssembly和wapm项目的成功。
在Wasmer, Inc.,我们做三件事来支持这个目标。
-
构建一个WebAssembly运行时,在JavaScript之外释放WebAssembly的力量,所以它可以在任何地方使用(独立的、嵌入Python、PHP……)。
-
将开源注册表作为一项免费服务来运行。
-
建立支持使用WebAssembly模块的工具和运维服务
Wasmer的使命是让每个人都能使用WebAssembly。
我们的办公室在加州旧金山市中心。
2 - wapm安装
wapm安装
安装
参考 https://docs.wasmer.io/ecosystem/wasmer/getting-started :
$ curl https://get.wasmer.io -sSfL | sh
Welcome to the Wasmer bash installer!
ww
wwwww
ww wwwwww w
wwwww wwwwwwwww
ww wwwwww w wwwwwww
wwwww wwwwwwwwww wwwww
wwwwww w wwwwwww wwwww
wwwwwwwwwwwwww wwwww wwwww
wwwwwwwwwwwwwww wwwww wwwww
wwwwwwwwwwwwwww wwwww wwwww
wwwwwwwwwwwwwww wwwww wwwww
wwwwwwwwwwwwwww wwwww wwww
wwwwwwwwwwwwwww wwwww
wwwwwwwwwwww wwww
wwwwwwww
wwww
downloading: wasmer-linux-amd64
Latest release: 2.2.0-rc2
Downloading archive from https://github.com/wasmerio/wasmer/releases/download/2.2.0-rc2/wasmer-linux-amd64.tar.gz
######################################################################## 100.0%######################################################################### 100.0%
installing: /home/sky/.wasmer
Updating bash profile /home/sky/.zshrc
we've added the following to your /home/sky/.zshrc
If you have a different profile please add the following:
# Wasmer
export WASMER_DIR="/home/sky/.wasmer"
[ -s "$WASMER_DIR/wasmer.sh" ] && source "$WASMER_DIR/wasmer.sh"
check: wasmer 2.2.0-rc2 installed successfully ✓
wasmer & wapm will be available the next time you open the terminal.
If you want to have the commands available now please execute:
source /home/sky/.wasmer/wasmer.sh
验证安装:
$ source /home/sky/.wasmer/wasmer.sh
$ wapm --version
wapm-cli 0.5.1
$ which wapm
/home/sky/.wasmer/bin/wapm