Repository: promptfoo/promptfoo
Issue: Cannot install 0.117.0
Root cause: Configuration Error

**Describe the bug**
I cannot install 0.117.0

**To Reproduce**

```
❯ npx promptfoo@0.117.0 eval -c 'examples/roulette_wheel.promptfooconfig.yaml'
Need to install the following packages:
promptfoo@0.117.0
Ok to proceed? (y) 

npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
npm warn deprecated fluent-ffmpeg@2.1.3: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
node:internal/modules/cjs/loader:1397
  throw err;
  ^

Error: Cannot find module '@inquirer/input'
Require stack:
- ~/.npm/_npx/e449b81ded700069/node_modules/promptfoo/dist/src/globalConfig/accounts.js
- ~/.npm/_npx/e449b81ded700069/node_modules/promptfoo/dist/src/commands/auth.js
- ~/.npm/_npx/e449b81ded700069/node_modules/promptfoo/dist/src/main.js
    at Function._resolveFilename (node:internal/modules/cjs/loader:1394:15)
    at defaultResolveImpl (node:internal/modules/cjs/loader:1050:19)
    at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1055:22)
    at Function._load (node:internal/modules/cjs/loader:1204:37)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:234:24)
    at Module.require (node:internal/modules/cjs/loader:1480:12)
    at require (node:internal/modules/helpers:135:16)
    at Object.<anonymous> (~/.npm/_npx/e449b81ded700069/node_modules/promptfoo/dist/src/globalConfig/accounts.js:47:33)
    at Module._compile (node:internal/modules/cjs/loader:1723:14) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '~/.npm/_npx/e449b81ded700069/node_modules/promptfoo/dist/src/globalConfig/accounts.js',
    '~/.npm/_npx/e449b81ded700069/node_modules/promptfoo/dist/src/commands/auth.js',
    '~/.npm/_npx/e449b81ded700069/node_modules/promptfoo/dist/src/main.js'
  ]
}
```

**System information:**

If possible, please output the results of `promptfoo debug` and paste the output here.

- Promptfoo version:

```
❯ npx promptfoo@0.116.0 debug                                                 

=================================================================================================================
⚠️ The current version of promptfoo 0.116.0 is lower than the latest available version 0.117.0.

Please run npx promptfoo@latest or npm install -g promptfoo@latest to update.
=================================================================================================================

=================================================================================================================
Promptfoo Debug Information
=================================================================================================================
{
  "version": "0.116.0",
  "platform": {
    "os": "darwin",
    "release": "24.3.0",
    "arch": "arm64",
    "nodeVersion": "v23.7.0"
  },
  "env": {},
  "configInfo": {
    "configExists": false,
    "configContent": null
  }
}
=================================================================================================================
```

**Additional context**
Add any other context about the problem here.


Looking into this right now. Will cut a release ASAP

Hi @prescod, thanks for reporting this issue! 

I've identified the root cause - the @inquirer packages were incorrectly listed as devDependencies instead of dependencies, causing them to be missing when installing via npx.

I've created a PR to fix this: #4973 

The fix moves all @inquirer packages that are used in runtime code to the dependencies section of package.json. Once merged, you should be able to install and run version 0.117.0 without any issues.

@mldangelo  Thanks for the quick fix.

You might consider having a CI step that will attempt to install your pre-releases.


I am increasingly a big Promptfoo fan, by the way. Very flexible architecture!

Sorry about this. A fix will be on npm in about 5 minutes. Please send me an email (michael @ promptfoo.dev) if you would like some swag.  

Just released https://github.com/promptfoo/promptfoo/releases/tag/0.117.1

I can confirm that this is resolved. Thank you for identifying it so quickly. The reason why it happened is we integrated: https://www.npmjs.com/package/knip to find and remove dead code and misconfigured it. I'll definitely play with building a new CI action, thank you for the advice. Closing the issue for now.