diff --git a/geth-install.sh b/geth-install.sh index 46640a2..0ca705a 100755 --- a/geth-install.sh +++ b/geth-install.sh @@ -4,7 +4,7 @@ if [ $1 ] then VERSION=$1 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 fi diff --git a/nixhome/.bashrc b/nixhome/.bashrc index 634c72d..f8af92e 100644 --- a/nixhome/.bashrc +++ b/nixhome/.bashrc @@ -45,7 +45,7 @@ alias grep='grep --color=auto' alias fgrep='fgrep --color=auto' alias egrep='egrep --color=auto' 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 curlw='curl -sSL -o /dev/null -w "%{http_code} | %{time_total} s | %{size_download} bytes | %{url_effective}\n"' if [ "$(uname)" = "Darwin" ] diff --git a/nixhome/.npmrc_taobao b/nixhome/.npmrc_taobao index ae44462..7549542 100644 --- a/nixhome/.npmrc_taobao +++ b/nixhome/.npmrc_taobao @@ -1 +1 @@ -registry=https://registry.npm.taobao.org +registry=https://registry.npmmirror.com diff --git a/nodejs-remove.sh b/nodejs-remove.sh new file mode 100644 index 0000000..249082e --- /dev/null +++ b/nodejs-remove.sh @@ -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 \ No newline at end of file diff --git a/nvm-install.sh b/nvm-install.sh index 1a7ee73..4ace80d 100755 --- a/nvm-install.sh +++ b/nvm-install.sh @@ -10,7 +10,7 @@ ## '########################################################################' ## 取消被默认添加到 .bashrc 的设置(already integrated in nixhome/.bashrc) -# pushd /faronear/sysconfig +# pushd ~/sysconfig # git reset . && git checkout . # popd @@ -18,5 +18,5 @@ git clone https://github.com/nvm-sh/nvm.git ~/.nvm echo 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 '########################################################################' diff --git a/uniapp-cli-amd64-node16-deb11.Dockerfile b/uniapp-cli-amd64-node16-deb11.Dockerfile index 9e59b04..d0eb183 100644 --- a/uniapp-cli-amd64-node16-deb11.Dockerfile +++ b/uniapp-cli-amd64-node16-deb11.Dockerfile @@ -1,10 +1,10 @@ FROM amd64/node:16.18-bullseye LABEL org.opencontainers.image.authors="luk" -RUN npm i -g --registry https://registry.npm.taobao.org @vue/cli@4 -RUN cd / && echo -e "\n" | vue create --registry https://registry.npm.taobao.org -p dcloudio/uni-preset-vue uniapp-cli +RUN npm i -g --registry https://registry.npmmirror.com @vue/cli@4 +RUN cd / && echo -e "\n" | vue create --registry https://registry.npmmirror.com -p dcloudio/uni-preset-vue uniapp-cli # 上一行自动选择了第一个空模板,因此需要额外安装 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 diff --git a/uniapp-cli-arm64v8-node18-deb11.Dockerfile b/uniapp-cli-arm64v8-node18-deb11.Dockerfile index 419dde9..3f15fd5 100644 --- a/uniapp-cli-arm64v8-node18-deb11.Dockerfile +++ b/uniapp-cli-arm64v8-node18-deb11.Dockerfile @@ -1,10 +1,10 @@ FROM arm64v8/node:18.16-bullseye LABEL org.opencontainers.image.authors="luk" -RUN npm i -g --registry https://registry.npm.taobao.org @vue/cli@4 -RUN cd / && echo -e "\n" | vue create --registry https://registry.npm.taobao.org -p dcloudio/uni-preset-vue uniapp-cli +RUN npm i -g --registry https://registry.npmmirror.com @vue/cli@4 +RUN cd / && echo -e "\n" | vue create --registry https://registry.npmmirror.com -p dcloudio/uni-preset-vue uniapp-cli # 上一行自动选择了第一个空模板,因此需要额外安装 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