@cannbot-ai/install-helper 0.0.2-beta.71 → 0.0.2-beta.72

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.
Files changed (2) hide show
  1. package/dist/install.ps1 +7 -3
  2. package/package.json +6 -6
package/dist/install.ps1 CHANGED
@@ -71,11 +71,15 @@ if ($hasNode) {
71
71
  }
72
72
  } catch {}
73
73
 
74
- Write-Host " 正在安装 @cannbot-ai/install-helper..." -ForegroundColor Cyan
74
+ Write-Host " Installing @cannbot-ai/install-helper..." -ForegroundColor Cyan
75
75
  Write-Host ""
76
76
 
77
- & npm.cmd install -g @cannbot-ai/install-helper 2>&1
78
- if ($LASTEXITCODE -eq 0) {
77
+ $prevEAP = $ErrorActionPreference
78
+ $ErrorActionPreference = "Continue"
79
+ & npm.cmd install -g @cannbot-ai/install-helper
80
+ $npmExit = $LASTEXITCODE
81
+ $ErrorActionPreference = $prevEAP
82
+ if ($npmExit -eq 0) {
79
83
  Write-Host ""
80
84
  Write-Host " [OK] 安装成功!" -ForegroundColor Green
81
85
  Write-Host ""
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cannbot-ai/install-helper",
3
- "version": "0.0.2-beta.71",
3
+ "version": "0.0.2-beta.72",
4
4
  "description": "Install Helper - Interactive installer for CANN operator development skills",
5
5
  "type": "module",
6
6
  "bin": {
@@ -42,11 +42,11 @@
42
42
  "yaml": "^2.6.0"
43
43
  },
44
44
  "optionalDependencies": {
45
- "@cannbot-ai/install-helper-linux-x64": "0.0.2-beta.71",
46
- "@cannbot-ai/install-helper-linux-arm64": "0.0.2-beta.71",
47
- "@cannbot-ai/install-helper-darwin-x64": "0.0.2-beta.71",
48
- "@cannbot-ai/install-helper-darwin-arm64": "0.0.2-beta.71",
49
- "@cannbot-ai/install-helper-windows-x64": "0.0.2-beta.71"
45
+ "@cannbot-ai/install-helper-linux-x64": "0.0.2-beta.72",
46
+ "@cannbot-ai/install-helper-linux-arm64": "0.0.2-beta.72",
47
+ "@cannbot-ai/install-helper-darwin-x64": "0.0.2-beta.72",
48
+ "@cannbot-ai/install-helper-darwin-arm64": "0.0.2-beta.72",
49
+ "@cannbot-ai/install-helper-windows-x64": "0.0.2-beta.72"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@types/node": "^22.0.0",