• Meron35@lemmy.world
    link
    fedilink
    English
    arrow-up
    11
    ·
    4 days ago

    As someone completely unfamiliar with the JavaScript mess, are these security issues specific to npm the actual repository or npm the package manager?

    If it’s the latter, does using something else like yarn or bun instead help?

    • [object Object]@lemmy.ca
      link
      fedilink
      English
      arrow-up
      11
      ·
      4 days ago

      I think npm allows installation scripts which do make this worse, as a package can run arbitrary command at install time.

      • anyhow2503@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        4 days ago

        Npm has gotten a few config options that prevent this behaviour. We can only hope that they will become the default eventually.