@xcanwin/manyoyo 5.7.8 → 5.7.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/manyoyo.js +1 -1
- package/package.json +1 -1
package/bin/manyoyo.js
CHANGED
|
@@ -857,7 +857,7 @@ function updateManyoyo() {
|
|
|
857
857
|
|
|
858
858
|
console.log(`${CYAN}🔄 当前版本: ${currentVersion}${NC}`);
|
|
859
859
|
console.log(`${CYAN}🔄 正在更新 ${MANYOYO_NAME} 到最新版本...${NC}`);
|
|
860
|
-
runCmd('npm', ['update', '-g', '@xcanwin/manyoyo'], { stdio: 'inherit' });
|
|
860
|
+
runCmd('npm', ['update', '-g', '@xcanwin/manyoyo', '--prefer-online'], { stdio: 'inherit' });
|
|
861
861
|
|
|
862
862
|
// 升级后获取新版本
|
|
863
863
|
let newVersion = 'unknown';
|