osx-query 0.1.5 → 0.1.6
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/README.md +0 -58
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -69,61 +69,3 @@ To suppress the prompt entirely:
|
|
|
69
69
|
```bash
|
|
70
70
|
OSX_QUERY_SKIP_SKILLS_PROMPT=1 npm i -g osx-query
|
|
71
71
|
```
|
|
72
|
-
|
|
73
|
-
## Update Checks
|
|
74
|
-
|
|
75
|
-
The `osx` shim checks npm occasionally to see whether a newer `osx-query` package is available.
|
|
76
|
-
|
|
77
|
-
- it uses a local cache and checks at most once every 24 hours by default
|
|
78
|
-
- it fails silently if the npm registry is unavailable
|
|
79
|
-
- if a newer version exists, it prints the update command:
|
|
80
|
-
|
|
81
|
-
```bash
|
|
82
|
-
npm i -g osx-query
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
You can disable update checks entirely:
|
|
86
|
-
|
|
87
|
-
```bash
|
|
88
|
-
OSX_QUERY_DISABLE_UPDATE_CHECK=1 osx --help
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
## Troubleshooting
|
|
92
|
-
|
|
93
|
-
If `npm i -g osx-query` succeeds but `osx` is not found, the usual cause is that your npm global bin directory is not on `PATH`.
|
|
94
|
-
|
|
95
|
-
Check where npm installs global binaries:
|
|
96
|
-
|
|
97
|
-
```bash
|
|
98
|
-
npm prefix -g
|
|
99
|
-
npm bin -g
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
Then make sure that bin directory is on your shell `PATH`.
|
|
103
|
-
|
|
104
|
-
If `osx` exists but it is the wrong one, check for command shadowing:
|
|
105
|
-
|
|
106
|
-
```bash
|
|
107
|
-
which -a osx
|
|
108
|
-
```
|
|
109
|
-
|
|
110
|
-
That will show whether another `osx` binary or symlink is being found before the npm-installed one.
|
|
111
|
-
|
|
112
|
-
If the command is found but macOS blocks it, verify the installed binary directly:
|
|
113
|
-
|
|
114
|
-
```bash
|
|
115
|
-
osx --help
|
|
116
|
-
spctl -a -t exec -vv "$(which osx)"
|
|
117
|
-
codesign -dv "$(which osx)" 2>&1 | head
|
|
118
|
-
```
|
|
119
|
-
|
|
120
|
-
If queries run but return nothing useful, the problem is usually Accessibility permissions, not installation. Grant access to your terminal in:
|
|
121
|
-
|
|
122
|
-
`System Settings -> Privacy & Security -> Accessibility`
|
|
123
|
-
|
|
124
|
-
If you want to reinstall cleanly:
|
|
125
|
-
|
|
126
|
-
```bash
|
|
127
|
-
npm uninstall -g osx-query
|
|
128
|
-
npm i -g osx-query
|
|
129
|
-
```
|