fix(cli): npm i -g flag is deprecated

This commit is contained in:
LongYinan 2022-08-12 13:25:45 +08:00
parent 4cd1c3aaf8
commit 9b9cd5d23b
No known key found for this signature in database
GPG key ID: C3666B7FC82ADAD7

View file

@ -214,7 +214,7 @@ jobs:
prepare: |
pkg install -y curl node14 python2
curl -qL https://www.npmjs.com/install.sh | sh
npm install -g yarn
npm install --location=global yarn
curl https://sh.rustup.rs -sSf --output rustup.sh
sh rustup.sh -y --profile minimal --default-toolchain stable
export PATH="/usr/local/cargo/bin:$PATH"