Skip to content

[BUG] npm not installing (all) optional dependencies #5831

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
2 tasks done
notroid5 opened this issue Nov 9, 2022 · 0 comments
Open
2 tasks done

[BUG] npm not installing (all) optional dependencies #5831

notroid5 opened this issue Nov 9, 2022 · 0 comments
Labels
Bug thing that needs fixing Needs Triage needs review for next steps Release 8.x work is associated with a specific npm 8 release

Comments

@notroid5
Copy link

notroid5 commented Nov 9, 2022

Is there an existing issue for this?

  • I have searched the existing issues

This issue exists in the latest npm version

  • I am using the latest npm

Current Behavior

npm does not install (all) optional dependencies by default

Expected Behavior

npm installs all optional dependencies by default

Steps To Reproduce

  1. npm i @twurple/chat
  2. npm ls --all
  3. See output above:
  • UNMET OPTIONAL DEPENDENCY encoding@^0.1.0
  • UNMET OPTIONAL DEPENDENCY bufferutil@^4.0.1
  • UNMET OPTIONAL DEPENDENCY utf-8-validate@^5.0.2

If you install those packages (as optional dependencies) yourself and check the output again, it is fine.

Environment

  • npm: 8.19.2 (I know 8.19.3 is current but it is not included in node v18.12.1 which is current so...)
  • Node.js: v18.12.0
  • OS Name: Windows 10 21H1
  • System Model Name: custom pc
  • npm config:
; "builtin" config from C:\Program Files\nodejs\node_modules\npm\npmrc

prefix = "C:\\Users\\[]\\AppData\\Roaming\\npm"

; node bin location = C:\Program Files\nodejs\node.exe
; node version = v18.12.0
; npm local prefix = C:\Users\[]
; npm version = 8.19.2
; cwd = C:\Users\[]
; HOME = C:\Users\[]
; Run `npm config ls -l` to show all defaults.
@notroid5 notroid5 added Bug thing that needs fixing Needs Triage needs review for next steps Release 8.x work is associated with a specific npm 8 release labels Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug thing that needs fixing Needs Triage needs review for next steps Release 8.x work is associated with a specific npm 8 release
Projects
None yet
Development

No branches or pull requests

1 participant