#16: All about package-lock.json - Mastering NPM

Поделиться
HTML-код
  • Опубликовано: 27 ноя 2024

Комментарии • 33

  • @dineshswami9680
    @dineshswami9680 3 года назад +5

    This is one of the most important video in this series and pretty much required to know for every front-end developer. Without knowing these facts if someone upgrade the project and end up in issues then it will be very time consuming and tedious to fix. Mehul thanks for sharing. Keep going good work.

  • @DiogoFaFab
    @DiogoFaFab 7 месяцев назад

    Amazing explanation, thanks a lot for all the effort recording those videos

  • @swire1571
    @swire1571 Год назад +1

    crystal clear explanation 🙌🙌

  • @YSEVERYNAMETAKENGOD
    @YSEVERYNAMETAKENGOD 4 года назад +5

    EXCELLENT video. You have such an amazing way of conveying information. Kudos on great content.

    • @codedamn
      @codedamn  3 года назад +1

      I appreciate that!

  • @tomislavzivkovic3978
    @tomislavzivkovic3978 Год назад

    Excellent video. One thing you did not mention: If I run npm install and I have both files package.json and package-lock.json which one will be used?

  • @clearlyajit
    @clearlyajit 3 года назад +10

    2:00 that's minor version, not patch

    • @Revanth2344
      @Revanth2344 3 месяца назад

      Minor versions are mainly for security bugs

  • @javierovallea3836
    @javierovallea3836 3 года назад

    thank you brother , you are the best teacher.

  • @manylovv
    @manylovv 2 года назад

    that's amazing video, thank you so much!

  • @bhagyashreepani4059
    @bhagyashreepani4059 Год назад

    Hi Sir
    I m trying to resolve a scenario, where there is a package called chalk which comes under many parent package, now i f have to upgarde chalk 2.0.0 to chalk 4.2.0 , so that it should also gets update under each parent package as well of the node modules.
    How can i do that , i m trying to address security vulenarability .
    Please help
    Thanks!

  • @avivhadar5478
    @avivhadar5478 3 года назад +2

    Beautifully explained!
    So why even use the "~" & "^" in your package.json?
    If I don't use them then I will never have these conflicts, isn't it so?

    • @dmytrotereshchenko6396
      @dmytrotereshchenko6396 2 года назад +1

      Definitely. But one of your dependencies also could use those "~" & "^" version for their own dependencies and that is the issue.

  • @vlogboard
    @vlogboard 2 года назад

    How to install dependencies in nodejs project if the project has 2 package.json files. One on root and the other one with dependencies in say libs folder?

  • @Aman-Verma
    @Aman-Verma 3 года назад

    wow.. thanks for the this series.

  • @CarlosAlbertBR
    @CarlosAlbertBR 2 года назад

    Clear and good explanation! Thanks!

  • @fetis26
    @fetis26 2 года назад

    actually doesn't explain how -lock file is working. NPM takes lock file in consideration only with ci install

  • @charminarchaupal
    @charminarchaupal 3 года назад +1

    what does lockfileversion do in package-lock.json? One branch in my repository has lockfileversion: 1 and the other branch has lockfileversion: 2 ,what is the meaning of that?

    • @muhammadsiddiqui9522
      @muhammadsiddiqui9522 2 года назад +1

      lockfileversion 2 was inttroduced in npm 7 and this guy is using npm 6

  • @shaunpx1
    @shaunpx1 2 года назад

    So say we delete node_modules and deleting package-lock.json and reinstalling "npm install" will download the new versions than specified on package.json with possible breaking changes?

  • @faisalmushtaq2287
    @faisalmushtaq2287 2 года назад

    I am getting this: 20 vulnerabilities (3 moderate, 16 high, 1 critical). How to resolve this. But i think issue is in package-lock.json file

  • @Aman-Verma
    @Aman-Verma 3 года назад

    so that means after npm install, and if there's newer minor/patch version, npm updates the package but packge-lock.json will not update? But if we explicitly change the version in package.json then it will also update in package-lock.json. correct me if I am wrong

  • @roym4457
    @roym4457 2 года назад

    but how do we use it to install packages? clearly npm install won't work, right?

  • @ankitjain-1
    @ankitjain-1 3 года назад +1

    And do not forget to commit this package-lock.json file.

    • @anmolrai194
      @anmolrai194 2 года назад

      Learn package.lock.json in Hindi - ruclips.net/video/fsAHuwF53KU/видео.html

  • @muhammadsiddiqui2244
    @muhammadsiddiqui2244 4 года назад +1

    Excellent

    • @codedamn
      @codedamn  4 года назад

      Thanks Muhammad! :)

  • @HKDangerouscase
    @HKDangerouscase 2 года назад

    Hi, thank you so much for making this video! It has been very useful! However im stuck on the last part, i have generated the nfts and j.son file on visual studio code however how do i transfer them to a single folder on my laptop please? Please help! Thank you so much - I'll send you an NFT once its out as an appreciation gift! :)

  • @AshokYadav-iq8vb
    @AshokYadav-iq8vb 4 года назад

    hi mehul..i am searching for the playlist of this video? please update it in description..

    • @codedamn
      @codedamn  4 года назад

      ruclips.net/p/PLYxzS__5yYQmf-iF_9MTZmx7TxnmwnKIk

  • @cepi24
    @cepi24 4 года назад

    can you share your PS1 variable? Thanks

  • @hk_build
    @hk_build 3 года назад

    Greate tutorial.!!
    let say express: ^4.17.1 has the latest version ^4.18.1 after few weeks
    if i do ( npm install ) in feature, will it install 4.17.1 OR 4.18.1 ??
    i need latest version so