@zkochan/npm-conf
Advanced tools
Comparing version 1.2.3 to 1.2.4
@@ -15,3 +15,10 @@ 'use strict'; | ||
// Assume that last path in resolve paths is builtin modules directory | ||
const npmPath = require.resolve('npm', {paths: paths.slice(-1)}); | ||
let npmPath; | ||
try { | ||
npmPath = require.resolve('npm', {paths: paths.slice(-1)}); | ||
} catch (error) { | ||
// Error will be thrown if module cannot be found. | ||
// We should ignore that error. | ||
} | ||
if (npmPath) { | ||
@@ -18,0 +25,0 @@ /** |
{ | ||
"name": "@zkochan/npm-conf", | ||
"version": "1.2.3", | ||
"version": "1.2.4", | ||
"description": "Get the npm config", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22499
677