Skip to content

🐛 Bug: Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'octokit' #12

@JoshuaKGoldberg

Description

@JoshuaKGoldberg

Bug Report Checklist

  • I have tried restarting my IDE and the issue persists.
  • I have pulled the latest main branch of the repository.
  • I have searched for related issues and found none that matched my issue.

Expected

npx prune-github-notifications should work.

Actual

npx prune-github-notifications
node:internal/modules/esm/resolve:853
  throw new ERR_MODULE_NOT_FOUND(packageName, fileURLToPath(base), null);
        ^

Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'octokit' imported from /Users/josh/.npm/_npx/5ed9c53f0b821c5d/node_modules/prune-github-notifications/lib/pruneGitHubNotifications.js
    at packageResolve (node:internal/modules/esm/resolve:853:9)
    at moduleResolve (node:internal/modules/esm/resolve:910:20)
    at defaultResolve (node:internal/modules/esm/resolve:1130:11)
    at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:396:12)
    at ModuleLoader.resolve (node:internal/modules/esm/loader:365:25)
    at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:240:38)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:85:39)
    at link (node:internal/modules/esm/module_job:84:36) {
  code: 'ERR_MODULE_NOT_FOUND'
}

Additional Info

I'd added octokit under devDependencies, not dependencies. Whoops.

Metadata

Metadata

Labels

status: accepting prsPlease, send a pull request to resolve this! 🙏type: bugSomething isn't working 🐛

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions