@criticalmanufacturing/cli 4.2.1 → 4.2.2-1
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 +1 -1
- package/run.js +1 -1
package/package.json
CHANGED
package/run.js
CHANGED
|
@@ -20,7 +20,7 @@ debug("Determining if cli is installed globally or locally...");
|
|
|
20
20
|
* However, this does not cover some cases, depending on how Node was installed, that we need to check manually:
|
|
21
21
|
* - in windows, Node was installed in Program Files but NPM is installed in the user profile (AppData/Roaming)
|
|
22
22
|
*/
|
|
23
|
-
if (isInstalledGlobally || isPathInside(__dirname, process.env.APPDATA || "dummy")) {
|
|
23
|
+
if (isInstalledGlobally || isPathInside(__dirname, process.env.APPDATA || "dummy") || isPathInside(__dirname, "/usr/local")) {
|
|
24
24
|
debug("cli is installed globally. Getting binary location from user profile...");
|
|
25
25
|
const paths = envPaths("cmf-cli", {suffix: ""});
|
|
26
26
|
exePath = path.join(paths.data, opts.binName);
|