@take2identity/verosint 0.2.21 → 0.2.23
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/postinstall.js +2 -2
package/package.json
CHANGED
package/postinstall.js
CHANGED
|
@@ -41,7 +41,7 @@ function getInstallationPath(callback) {
|
|
|
41
41
|
// Ex: /Users/foo/.nvm/versions/node/v4.3.0
|
|
42
42
|
const env = process.env;
|
|
43
43
|
|
|
44
|
-
if (env
|
|
44
|
+
if (env?.npm_config_prefix) {
|
|
45
45
|
dir = join(env.npm_config_prefix, 'bin');
|
|
46
46
|
} else {
|
|
47
47
|
return callback(new Error('Error finding binary installation directory'));
|
|
@@ -50,7 +50,7 @@ function getInstallationPath(callback) {
|
|
|
50
50
|
dir = stdout.trim();
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
dir = dir.replace(/node_modules.*[
|
|
53
|
+
dir = dir.replace(/node_modules.*[/\\]\.bin/, join('node_modules', '.bin'));
|
|
54
54
|
mkdirp.sync(dir);
|
|
55
55
|
callback(null, dir);
|
|
56
56
|
});
|