-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Description
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:
npm run install:allfails with "Missing script" errornpm installfails with a message enforcing pnpm usagenpm run installfails 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
- Clone the repository
- Run
npm run install:all - Observe error: "Missing script: install:all"
- Run
npm install - Observe error enforcing pnpm usage
- Run
npm run install - 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.logAdditional 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:
- Add equivalent pnpm scripts for installation
- Update documentation to clearly explain the migration to pnpm
- Consider adding compatibility scripts that redirect npm commands to their pnpm equivalents
Metadata
Metadata
Assignees
Labels
Type
Projects
Status