Quenty / Quenty/NevermoreEngine

npm install has slowed down significantly

Open
#670 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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:

  1. Have a package.json file with a decent amount of nevermore dependencies
  2. Run npm install --verbose
  3. 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
Image

Environment:

  • OS: Windows

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.