Skip to content

Regression: npm run install:all and npm run install commands no longer work after pnpm migration #3876

@KJ7LNW

Description

@KJ7LNW

Which version of the app are you using?

3.18.1

Which API Provider are you using?
N/A

Which Model are you using?
sonnet-3.5

What happened?

The common npm installation commands no longer work after the project migrated to pnpm. Specifically:

  1. npm run install:all fails with "Missing script" error
  2. npm install fails with a message enforcing pnpm usage
  3. npm run install fails with "Missing script" error

This breaks the standard workflow for users who are trying to install dependencies using the previously documented commands.

Also tell us, what did you expect to happen?

I expected the installation commands to work as they did before, or to have clear documentation/scripts that provide equivalent functionality with pnpm. The project should either maintain backward compatibility with npm commands or provide clear migration instructions and equivalent pnpm commands.

Steps to reproduce

  1. Clone the repository
  2. Run npm run install:all
  3. Observe error: "Missing script: install:all"
  4. Run npm install
  5. Observe error enforcing pnpm usage
  6. Run npm run install
  7. Observe error: "Missing script: install"

Relevant API REQUEST output

npm run install:all
npm error Missing script: "install:all"
npm error
npm error Did you mean this?
npm error   npm install # Install a package
npm error
npm error To see a list of scripts, run:
npm error   npm run
npm error A complete log of this run can be found in: /home/.npm/_logs/2025-05-23T00_46_06_717Z-debug-0.log

npm install
npm warn EBADENGINE Unsupported engine {
npm warn EBADENGINE   package: undefined,
npm warn EBADENGINE   required: { node: "20.18.1" },
npm warn EBADENGINE   current: { node: "v20.18.2", npm: "10.8.2" }
npm warn EBADENGINE }

> preinstall
> npx only-allow pnpm

╔═════════════════════════════════════════════════════════════╗
║                                                             ║
║   Use "pnpm install" for installation in this project.      ║
║                                                             ║
║   If you don't have pnpm, install it via "npm i -g pnpm".   ║
║   For more details, go to https://pnpm.js.org/              ║
║                                                             ║
╚═════════════════════════════════════════════════════════════╝
npm error code 1
npm error path /home/src/roo/Roo3
npm error command failed
npm error command sh -c npx only-allow pnpm
npm error A complete log of this run can be found in: /home/.npm/_logs/2025-05-23T00_46_26_107Z-debug-0.log

npm run install
npm error Missing script: "install"
npm error
npm error Did you mean this?
npm error   npm uninstall # Remove a package
npm error
npm error To see a list of scripts, run:
npm error   npm run
npm error A complete log of this run can be found in: /home/.npm/_logs/2025-05-23T00_46_47_222Z-debug-0.log

Additional context

The project has migrated to pnpm as shown in package.json:

{
  "packageManager": "pnpm@10.8.1",
  "scripts": {
    "preinstall": "npx only-allow pnpm",
    ...
  }
}

However, the previously working npm installation commands have not been updated or documented. This creates confusion for users who are following older documentation or established workflows.

Suggested solutions:

  1. Add equivalent pnpm scripts for installation
  2. Update documentation to clearly explain the migration to pnpm
  3. Consider adding compatibility scripts that redirect npm commands to their pnpm equivalents

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions