npm install -g yarn
yarn config set yarn-offline-mirror ./npm-packages-offline-cache
mv ~/.yarnrc ./
rm -rf node_modules/ yarn.lock
yarn install
cd /home
makir npm
cd /npm
unzip node_modules.zip
cd node_modules
chmod a+x uploadUpmOffline.sh
npm login -u admin -p admin --registry=http://192.168.100.100:8080/repository/npm-test/
#!/bin/bash
for file in $(ls /home/npm/node_modules)
do
if [ "${file##*.}" = "tgz" ]; then
npm publish /home/npm/node_modules/$file --registry=http://192.168.100.100:8080/repository/npm-test/
fi
done
./uploadUpmOffline.sh
因篇幅问题不能全部显示,请点此查看更多更全内容
Copyright © 2019- haog.cn 版权所有 赣ICP备2024042798号-2
违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com
本站由北京市万商天勤律师事务所王兴未律师提供法律服务