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.
1 parent 3ad5a2a commit 3674584Copy full SHA for 3674584
.changeset/strange-peas-agree.md
@@ -0,0 +1,5 @@
1
+---
2
+'astro': patch
3
4
+
5
+Fix `astro check` not finding the `@astrojs/check` package
packages/astro/src/cli/install-package.ts
@@ -22,7 +22,7 @@ export async function getPackage<T>(
22
23
let packageImport;
24
try {
25
- require.resolve(packageName);
+ require.resolve(packageName, { paths: [options.cwd ?? process.cwd()] });
26
27
// The `require.resolve` is required as to avoid Node caching the failed `import`
28
packageImport = await import(packageName);
0 commit comments