sealtun 0.0.22 → 0.0.24
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/sealtun.js +18 -2
- package/package.json +7 -7
package/bin/sealtun.js
CHANGED
|
@@ -36,11 +36,27 @@ if (!variant) {
|
|
|
36
36
|
process.exit(1);
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
+
function printInstallHelp(reason) {
|
|
40
|
+
console.error(reason);
|
|
41
|
+
console.error('');
|
|
42
|
+
console.error('Troubleshooting:');
|
|
43
|
+
console.error(' - Reinstall with optional dependencies enabled: npm install -g sealtun');
|
|
44
|
+
console.error(' - One-off run without global install: npx sealtun@latest --version');
|
|
45
|
+
console.error(' - Ensure you did not use --omit=optional or npm config optional=false.');
|
|
46
|
+
if (process.platform === 'win32') {
|
|
47
|
+
console.error(' - On Windows, npm global installs can fail when the global prefix is not writable, especially with nvm-windows or Node under Program Files.');
|
|
48
|
+
console.error(' - Check the global prefix: npm config get prefix');
|
|
49
|
+
console.error(' - A user-writable prefix usually works: npm config set prefix "%APPDATA%\\npm"');
|
|
50
|
+
console.error(' - Ensure %APPDATA%\\npm is in PATH, then reopen PowerShell.');
|
|
51
|
+
console.error(' - If global install remains blocked, download sealtun_windows_amd64.zip or sealtun_windows_arm64.zip from GitHub Releases.');
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
39
55
|
let binaryPath;
|
|
40
56
|
try {
|
|
41
57
|
binaryPath = require.resolve(`${variant.packageName}/bin/${variant.binary}`);
|
|
42
58
|
} catch (error) {
|
|
43
|
-
|
|
59
|
+
printInstallHelp(`Could not find ${variant.packageName}. The platform-specific optional binary package was not installed.`);
|
|
44
60
|
process.exit(1);
|
|
45
61
|
}
|
|
46
62
|
|
|
@@ -50,7 +66,7 @@ const result = spawnSync(binaryPath, process.argv.slice(2), {
|
|
|
50
66
|
});
|
|
51
67
|
|
|
52
68
|
if (result.error) {
|
|
53
|
-
|
|
69
|
+
printInstallHelp(`Failed to start sealtun binary at ${binaryPath}: ${result.error.message}`);
|
|
54
70
|
process.exit(1);
|
|
55
71
|
}
|
|
56
72
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sealtun",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.24",
|
|
4
4
|
"description": "Sealtun CLI distributed through platform-specific npm binary packages.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sealtun",
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
"bin"
|
|
26
26
|
],
|
|
27
27
|
"optionalDependencies": {
|
|
28
|
-
"@gitlayzer/sealtun-darwin-x64": "0.0.
|
|
29
|
-
"@gitlayzer/sealtun-darwin-arm64": "0.0.
|
|
30
|
-
"@gitlayzer/sealtun-linux-x64": "0.0.
|
|
31
|
-
"@gitlayzer/sealtun-linux-arm64": "0.0.
|
|
32
|
-
"@gitlayzer/sealtun-win32-x64": "0.0.
|
|
33
|
-
"@gitlayzer/sealtun-win32-arm64": "0.0.
|
|
28
|
+
"@gitlayzer/sealtun-darwin-x64": "0.0.24",
|
|
29
|
+
"@gitlayzer/sealtun-darwin-arm64": "0.0.24",
|
|
30
|
+
"@gitlayzer/sealtun-linux-x64": "0.0.24",
|
|
31
|
+
"@gitlayzer/sealtun-linux-arm64": "0.0.24",
|
|
32
|
+
"@gitlayzer/sealtun-win32-x64": "0.0.24",
|
|
33
|
+
"@gitlayzer/sealtun-win32-arm64": "0.0.24"
|
|
34
34
|
}
|
|
35
35
|
}
|