From 9b9cd5d23b0f3be01b8b42bc808f96557c6e22e0 Mon Sep 17 00:00:00 2001 From: LongYinan Date: Fri, 12 Aug 2022 13:25:45 +0800 Subject: [PATCH] fix(cli): npm i -g flag is deprecated --- cli/src/new/ci-template.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/new/ci-template.ts b/cli/src/new/ci-template.ts index b3cfe777..57106ae9 100644 --- a/cli/src/new/ci-template.ts +++ b/cli/src/new/ci-template.ts @@ -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"