We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
kpm check
1 parent c7172ca commit 6eb3a14Copy full SHA for 6eb3a14
src/cli/commands/check.js
@@ -82,7 +82,7 @@ export async function run(
82
let res = await install.linker.initCopyModules(rawPatterns);
83
for (let [loc] of res) {
84
let human = path.relative(path.join(process.cwd(), "node_modules"), loc);
85
- human = human.replace(/node_modules/g, " > ");
+ human = human.replace(new RegExp(`${path.sep}node_modules${path.sep}`, "g"), " > ");
86
87
if (!(await fs.exists(loc))) {
88
reporter.error(`Module not installed: ${human}`);
0 commit comments