Commit b3f24a61 authored by tywldx's avatar tywldx

change npm config

parent 4759000b
...@@ -121,13 +121,14 @@ function buildNodeProject() ...@@ -121,13 +121,14 @@ function buildNodeProject()
rm -rf ./$config_file rm -rf ./$config_file
echo " ------------ln -s $config_path/node/$project.* ./$config_file" echo " ------------ln -s $config_path/node/$project.* ./$config_file"
ln -s $config_path/node/$project.* ./$config_file ln -s $config_path/node/$project.* ./$config_file
npmrc=`find ./ -maxdepth 1 -name ".npmrc"` # npmrc=`find ./ -maxdepth 1 -name ".npmrc"`
echo "---------------$npmrc" # echo "---------------$npmrc"
if [ -n "$npmrc" ];then # if [ -n "$npmrc" ];then
npm install # npm install
else # else
npm --registry http://172.16.3.15:4873 install npm config set "@types:registry" http://registry.npmjs.org/
fi npm --registry http://172.16.3.15:4873 install
# fi
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment