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

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 +10 -1
  2. package/package.json +6 -6
package/dist/install.ps1 CHANGED
@@ -16,6 +16,15 @@ try {
16
16
  $ErrorActionPreference = "Stop"
17
17
  $ProgressPreference = "SilentlyContinue"
18
18
 
19
+ trap {
20
+ Write-Host ""
21
+ Write-Host " [ERROR] $_" -ForegroundColor Red
22
+ Write-Host ""
23
+ Write-Host " Press Enter to exit..."
24
+ Read-Host
25
+ exit 1
26
+ }
27
+
19
28
  function Compare-SemVer($a, $b) {
20
29
  $aParts = $a -split '-',2
21
30
  $bParts = $b -split '-',2
@@ -65,7 +74,7 @@ if ($hasNode) {
65
74
  Write-Host " 正在安装 @cannbot-ai/install-helper..." -ForegroundColor Cyan
66
75
  Write-Host ""
67
76
 
68
- & npm install -g @cannbot-ai/install-helper 2>&1
77
+ & npm.cmd install -g @cannbot-ai/install-helper 2>&1
69
78
  if ($LASTEXITCODE -eq 0) {
70
79
  Write-Host ""
71
80
  Write-Host " [OK] 安装成功!" -ForegroundColor Green
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cannbot-ai/install-helper",
3
- "version": "0.0.2-beta.70",
3
+ "version": "0.0.2-beta.71",
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.70",
46
- "@cannbot-ai/install-helper-linux-arm64": "0.0.2-beta.70",
47
- "@cannbot-ai/install-helper-darwin-x64": "0.0.2-beta.70",
48
- "@cannbot-ai/install-helper-darwin-arm64": "0.0.2-beta.70",
49
- "@cannbot-ai/install-helper-windows-x64": "0.0.2-beta.70"
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"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@types/node": "^22.0.0",