u
This commit is contained in:
parent
5dcf13d6d2
commit
29a2b5d7db
@ -4,7 +4,7 @@ if [ $1 ]
|
|||||||
then
|
then
|
||||||
VERSION=$1
|
VERSION=$1
|
||||||
else
|
else
|
||||||
echo "=== Enter geth \n [version number] for example 1.10.26 \n [leave blank] for the latest version"
|
echo "=== Install geth version of \n [version number] for example 1.10.26 \n [leave blank] for the latest version"
|
||||||
read -p ">>> " VERSION
|
read -p ">>> " VERSION
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@ alias grep='grep --color=auto'
|
|||||||
alias fgrep='fgrep --color=auto'
|
alias fgrep='fgrep --color=auto'
|
||||||
alias egrep='egrep --color=auto'
|
alias egrep='egrep --color=auto'
|
||||||
alias su='su -'
|
alias su='su -'
|
||||||
alias npmc='npm --registry https://registry.npm.taobao.org'
|
alias npmc='npm --registry https://registry.npmmirror.com'
|
||||||
alias npmr='npm --silent run'
|
alias npmr='npm --silent run'
|
||||||
alias curlw='curl -sSL -o /dev/null -w "%{http_code} | %{time_total} s | %{size_download} bytes | %{url_effective}\n"'
|
alias curlw='curl -sSL -o /dev/null -w "%{http_code} | %{time_total} s | %{size_download} bytes | %{url_effective}\n"'
|
||||||
if [ "$(uname)" = "Darwin" ]
|
if [ "$(uname)" = "Darwin" ]
|
||||||
|
@ -1 +1 @@
|
|||||||
registry=https://registry.npm.taobao.org
|
registry=https://registry.npmmirror.com
|
||||||
|
8
nodejs-remove.sh
Normal file
8
nodejs-remove.sh
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
echo "Usage: this-script.sh [VERSION]"
|
||||||
|
|
||||||
|
rm -fr /usr/local/bin/node
|
||||||
|
rm -fr /usr/local/bin/npm
|
||||||
|
rm -fr /usr/local/lib/node_modules
|
||||||
|
rm -fr /usr/local/include/node
|
@ -10,7 +10,7 @@
|
|||||||
## '########################################################################'
|
## '########################################################################'
|
||||||
|
|
||||||
## 取消被默认添加到 .bashrc 的设置(already integrated in nixhome/.bashrc)
|
## 取消被默认添加到 .bashrc 的设置(already integrated in nixhome/.bashrc)
|
||||||
# pushd /faronear/sysconfig
|
# pushd ~/sysconfig
|
||||||
# git reset . && git checkout .
|
# git reset . && git checkout .
|
||||||
# popd
|
# popd
|
||||||
|
|
||||||
@ -18,5 +18,5 @@ git clone https://github.com/nvm-sh/nvm.git ~/.nvm
|
|||||||
|
|
||||||
echo
|
echo
|
||||||
echo '############## If in China, set mirror before nvm install ##############'
|
echo '############## If in China, set mirror before nvm install ##############'
|
||||||
echo export NVM_NODEJS_ORG_MIRROR=https://npm.taobao.org/mirrors/node
|
echo export NVM_NODEJS_ORG_MIRROR=https://npmmirror.com/mirrors/node
|
||||||
echo '########################################################################'
|
echo '########################################################################'
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
FROM amd64/node:16.18-bullseye
|
FROM amd64/node:16.18-bullseye
|
||||||
LABEL org.opencontainers.image.authors="luk"
|
LABEL org.opencontainers.image.authors="luk"
|
||||||
|
|
||||||
RUN npm i -g --registry https://registry.npm.taobao.org @vue/cli@4
|
RUN npm i -g --registry https://registry.npmmirror.com @vue/cli@4
|
||||||
RUN cd / && echo -e "\n" | vue create --registry https://registry.npm.taobao.org -p dcloudio/uni-preset-vue uniapp-cli
|
RUN cd / && echo -e "\n" | vue create --registry https://registry.npmmirror.com -p dcloudio/uni-preset-vue uniapp-cli
|
||||||
# 上一行自动选择了第一个空模板,因此需要额外安装 sass
|
# 上一行自动选择了第一个空模板,因此需要额外安装 sass
|
||||||
RUN cd /uniapp-cli && npm i -D --registry https://registry.npm.taobao.org sass@1.49.8 sass-loader@8.0.2
|
RUN cd /uniapp-cli && npm i -D --registry https://registry.npmmirror.com sass@1.49.8 sass-loader@8.0.2
|
||||||
|
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
FROM arm64v8/node:18.16-bullseye
|
FROM arm64v8/node:18.16-bullseye
|
||||||
LABEL org.opencontainers.image.authors="luk"
|
LABEL org.opencontainers.image.authors="luk"
|
||||||
|
|
||||||
RUN npm i -g --registry https://registry.npm.taobao.org @vue/cli@4
|
RUN npm i -g --registry https://registry.npmmirror.com @vue/cli@4
|
||||||
RUN cd / && echo -e "\n" | vue create --registry https://registry.npm.taobao.org -p dcloudio/uni-preset-vue uniapp-cli
|
RUN cd / && echo -e "\n" | vue create --registry https://registry.npmmirror.com -p dcloudio/uni-preset-vue uniapp-cli
|
||||||
# 上一行自动选择了第一个空模板,因此需要额外安装 sass
|
# 上一行自动选择了第一个空模板,因此需要额外安装 sass
|
||||||
RUN cd /uniapp-cli && npm i -D --registry https://registry.npm.taobao.org sass@1.49.8 sass-loader@8.0.2
|
RUN cd /uniapp-cli && npm i -D --registry https://registry.npmmirror.com sass@1.49.8 sass-loader@8.0.2
|
||||||
|
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user