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

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ธ.ค. 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.

  • @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  4 ปีที่แล้ว +1

      I appreciate that!

  • @DiogoFaFab
    @DiogoFaFab 8 หลายเดือนก่อน

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

  • @clearlyajit
    @clearlyajit 4 ปีที่แล้ว +10

    2:00 that's minor version, not patch

    • @Revanth2344
      @Revanth2344 4 หลายเดือนก่อน

      Minor versions are mainly for security bugs

  • @javierovallea3836
    @javierovallea3836 3 ปีที่แล้ว

    thank you brother , you are the best teacher.

  • @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?

  • @manylovv
    @manylovv 2 ปีที่แล้ว

    that's amazing video, thank you so much!

  • @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?

  • @Aman-Verma
    @Aman-Verma 3 ปีที่แล้ว

    wow.. thanks for the this series.

  • @CarlosAlbertBR
    @CarlosAlbertBR 3 ปีที่แล้ว

    Clear and good explanation! Thanks!

  • @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 ปีที่แล้ว

    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

  • @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

  • @roym4457
    @roym4457 3 ปีที่แล้ว

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

  • @muhammadsiddiqui2244
    @muhammadsiddiqui2244 4 ปีที่แล้ว +1

    Excellent

    • @codedamn
      @codedamn  4 ปีที่แล้ว

      Thanks Muhammad! :)

  • @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 - th-cam.com/video/fsAHuwF53KU/w-d-xo.html

  • @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 ปีที่แล้ว

      th-cam.com/play/PLYxzS__5yYQmf-iF_9MTZmx7TxnmwnKIk.html

  • @fetis26
    @fetis26 2 ปีที่แล้ว

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

  • @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