Quenty / Quenty/NevermoreEngine
npm install has slowed down significantly
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 610
- Forks
- 144
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 12
Description
Describe the bug
Running npm install has significantly slowed down from what it used to be before the pnpm switch. The cause seems to be the running of a pre-install script on every package. The old performance can be gained back by using the --ignore-scripts flag.
Steps to reproduce the behavior:
- Have a
package.jsonfile with a decent amount of nevermore dependencies - Run
npm install --verbose - Now run
npm install --ignore-scripts --verbose
Expected behavior
The normal install without the --ignore-scripts flag should be equally fast when using npm.
Screenshots
Environment:
- OS: Windows
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the slowdown with the package.json setup using npm install --verbose and npm install --ignore-scripts --verbose on Windows. Compare the install behavior and pre-install scripts, then consider the work complete when normal npm installation no longer has the reported performance gap without ignoring scripts.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100