Skip to content

Commit 7814cac

Browse files
authored
fix: better wording for nodemodules provider missing package (#398)
1 parent fb42a72 commit 7814cac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/trace/resolver.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ export class Resolver {
368368

369369
if (provider === "nodemodules") {
370370
throw new JspmError(
371-
`${parentUrl}node_modules/${target.name} does not exist, try installing "${target.name}" with npm first via "npm install ${target.name}".`
371+
`Cannot find package ${target.name} in node_modules from parent ${parentUrl}. Try installing "${target.name}" with npm first adding it to package.json "dependencies" or running "npm install --save ${target.name}".`
372372
);
373373
} else {
374374
throw new JspmError(

0 commit comments

Comments
 (0)