npm install has slowed down significantly

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

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
node.js
Domain
tooling

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.

Description

bug

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
Dominant language
Lua
Stars
632
Forks
148
Avg merge
15h 41m
Merged PRs (30d)
13

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

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.

More from Quenty/NevermoreEngine

All issues in Quenty/NevermoreEngine

Similar issues

More Lua issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.