npm install has slowed down significantly

オープン
#670 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
node.js
領域
tooling

調査の方向性

まず、Windows 上で npm install --verbose と npm install --ignore-scripts --verbose を使い、package.json の設定で速度低下を再現します。インストールの動作と pre-install スクリプトを比較し、スクリプトを無視しなくても通常の npm インストールで報告されたパフォーマンス差が生じなくなった時点で作業完了とします。

索引モデルが issue の本文から書いたものです。

説明

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
主要言語
Lua
スター
632
フォーク
148
平均マージ
15時間 41分
マージ済み PR(30日)
13

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Quenty/NevermoreEngine のほかの issue

Quenty/NevermoreEngine の issue をすべて見る

似ている issue

Lua の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。