Skip to content

Commit

Permalink
fix: better wording for nodemodules provider missing package (#398)
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford authored Dec 27, 2024
1 parent fb42a72 commit 7814cac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/trace/resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ export class Resolver {

if (provider === "nodemodules") {
throw new JspmError(
`${parentUrl}node_modules/${target.name} does not exist, try installing "${target.name}" with npm first via "npm install ${target.name}".`
`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}".`
);
} else {
throw new JspmError(
Expand Down

0 comments on commit 7814cac

Please sign in to comment.