npx-import
Advanced tools
Comparing version 1.1.2-0 to 1.1.2-1
@@ -107,4 +107,4 @@ import os from 'node:os'; | ||
} | ||
if (!semver.gte(npmVersion, '8.0.0')) { | ||
throw new Error(`Require npm version 8+. Got '${npmVersion}' when running '${versionCmd}'`); | ||
if (!semver.gte(npmVersion, '7.0.0')) { | ||
throw new Error(`Require npm version 7+. Got '${npmVersion}' when running '${versionCmd}'`); | ||
} | ||
@@ -178,4 +178,8 @@ } | ||
if (WINDOWS) { | ||
const paths = stdout.replace(/^PATH=/i, '').split(';'); | ||
const tempPath = paths.find((p) => /\\npm-cache\\_npx\\/.exec(p)); | ||
const paths = stdout | ||
.replace(/^PATH=/i, '') | ||
.replace(/\\\\\\\\/g, '\\\\') | ||
.replace(/\\r\\n/g, ';') | ||
.split(';'); | ||
const tempPath = paths.find((p) => /\\npm[-\\]+cache\\_npx\\/.exec(p)); | ||
if (!tempPath) | ||
@@ -182,0 +186,0 @@ throw new Error(`Failed to find temporary install directory. Looking for paths matching '\\npm-cache\\_npx\\' in:\n${JSON.stringify(paths)}`); |
{ | ||
"name": "npx-import", | ||
"version": "1.1.2-0", | ||
"version": "1.1.2-1", | ||
"description": "Runtime dependencies, installed as if by magic ✨", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
61342
932