You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I start a new npm project without existing lockfile, installing even a single package takes a really long time. When I tried to use --verbose, I noticed an API call to https://registry.npmjs.org/-/npm/v1/security/advisories/bulk takes about 15 seconds or even longer to finish.
npm install without lockfile
npm verb reify failed optional dependency /home/fahmi/kodesiana/kodesianaeco/node_modules/fsevents
npm http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/advisories/bulk 152243ms
npm WARN deprecated rollup-plugin-inject@3.0.2: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-inject.
The API call should not take too long or at least provide a clear status update to indicate the process. The current behavior just look like the install process is stuck, but it is not.
My temporary solution is to disable npm audit altogether to avoid this issue, but I know it is not a good thing to do.
Steps To Reproduce
Create new empty directory
npm init -y
Install any package, for example npm install @biomejs/biome --verbose
Check the log
Environment
npm: 10.5.2
Node.js: 20.12.0
OS Name: Ubuntu 22.04.3 LTS
System Model Name: PC
npm config:
; "global" config from /home/fahmi/.nvm/versions/node/v20.12.0/etc/npmrcregistry = "https://registry.npmjs.org/"; "user" config from /home/fahmi/.npmrcaudit = false
; node bin location = /home/fahmi/.nvm/versions/node/v20.12.0/bin/node; node version = v20.12.0; npm local prefix = /home/fahmi/kodesiana/kodesianaeco; npm version = 10.5.2; cwd = /home/fahmi/kodesiana/kodesianaeco; HOME = /home/fahmi; Run `npm config ls -l` to show all defaults.
The text was updated successfully, but these errors were encountered:
npm http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/advisories/bulk 194ms This is what I get when I try to reproduce. This doesn't look like it's a problem w/ npm itself. It may have been a networking issue or an issue w/ the registry itself. If you are having issues with the npm registry you can go to https://www.npmjs.com/support
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
If I start a new npm project without existing lockfile, installing even a single package takes a really long time. When I tried to use
--verbose
, I noticed an API call tohttps://registry.npmjs.org/-/npm/v1/security/advisories/bulk
takes about 15 seconds or even longer to finish.npm install
without lockfilenpm install
with lockfileExpected Behavior
The API call should not take too long or at least provide a clear status update to indicate the process. The current behavior just look like the install process is stuck, but it is not.
My temporary solution is to disable npm audit altogether to avoid this issue, but I know it is not a good thing to do.
Steps To Reproduce
npm init -y
npm install @biomejs/biome --verbose
Environment
The text was updated successfully, but these errors were encountered: