forked from shufflewzc/faker3
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Faker
authored and
Faker
committed
Oct 30, 2022
1 parent
c664989
commit 309f17e
Showing
3 changed files
with
59 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/usr/bin/env bash | ||
#依赖安装,运行一次就好 | ||
#1 1 1 1 1 jd_indeps.sh | ||
#new Env('依赖安装-手动运行'); | ||
# | ||
|
||
npm_ver=`pnpm -v|awk -F. '{print $1}'` | ||
if [[ $npm_ver -ge 7 ]];then | ||
export PNPM_HOME="/root/.local/share/pnpm" | ||
export PATH="$PNPM_HOME:$PATH" | ||
fi | ||
|
||
echo -e "安装脚本所需依赖,不一定一次全部安装成功,请自己检查\n" | ||
echo -e "开始安装............\n" | ||
|
||
#apk add g++ make pixman-dev pango-dev cairo-dev pkgconf --no-cache | ||
pnpm config set registry https://registry.npm.taobao.org | ||
pnpm install -g png-js | ||
pnpm install -g date-fns | ||
pnpm install -g [email protected] | ||
pnpm install -g crypto-js | ||
pnpm install -g ts-md5 | ||
pnpm install -g tslib | ||
pnpm install -g @types/node | ||
pnpm install -g request | ||
pnpm install -g jsdom | ||
pnpm install -g moment | ||
pnpm install -g tough-cookie | ||
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple/ jieba | ||
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple/ requests | ||
rm -rf /usr/local/pnpm-global/5/node_modules/.pnpm/canvas* | ||
echo -e "\n所需依赖安装完成,请检查有没有报错,可尝试再次运行" |
Large diffs are not rendered by default.
Oops, something went wrong.