Skip to content

Commit

Permalink
Remove if part from the error message
Browse files Browse the repository at this point in the history
Co-authored-by: Lukas Taegert-Atkinson <lukastaegert@users.noreply.github.com>
  • Loading branch information
sapphi-red and lukastaegert committed Nov 24, 2023
1 parent 67a55e4 commit 074547f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion native.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const requireWithFriendlyError = id => {
throw new Error(
`Cannot find module ${id}. ` +

Check warning on line 54 in native.js

View check run for this annotation

Codecov / codecov/patch

native.js#L54

Added line #L54 was not covered by tests
`npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). ` +
'If you are/were using them, please try `npm i` again after removing both package-lock.json and node_modules directory.',
'Please try `npm i` again after removing both package-lock.json and node_modules directory.',
{ cause: error }
);
}
Expand Down

0 comments on commit 074547f

Please sign in to comment.