fleetctl 4.16.0 → 4.17.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fleetctl",
3
- "version": "v4.16.0",
3
+ "version": "v4.17.0",
4
4
  "description": "Installer for the fleetctl CLI tool",
5
5
  "bin": {
6
6
  "fleetctl": "./run.js"
package/run.js CHANGED
@@ -70,7 +70,34 @@ const run = async () => {
70
70
  try {
71
71
  await install();
72
72
  } catch (err) {
73
- console.error(`Failed to install: ${err.message}`);
73
+ // Users commonly see permission errors when trying to install the binaries if they have run
74
+ // `sudo npm install -g fleetctl` (or the Windows equivalent of running as admin), then later
75
+ // try to run fleetctl without those elevated privileges.
76
+ if (err.code === "EACCES") {
77
+ switch (process.platform) {
78
+ case "darwin":
79
+ case "linux":
80
+ console.error(
81
+ "Error: It looks like your fleetctl has been installed as root."
82
+ );
83
+ console.error("Please re-run this command with sudo.");
84
+ process.exit(1);
85
+ break;
86
+ case "win32":
87
+ case "win64":
88
+ console.error(
89
+ "Error: It looks like your fleetctl has been installed as administrator."
90
+ );
91
+ console.error(
92
+ "Please re-run this command using 'Run as administrator'."
93
+ );
94
+ process.exit(1);
95
+ break;
96
+ default:
97
+ // Fall through to generic error print below
98
+ }
99
+ }
100
+ console.error(`Error: Failed to install: ${err.message}`);
74
101
  process.exit(1);
75
102
  }
76
103
  console.log("Install completed.");
package/fleet-osquery.pkg DELETED
Binary file