---
title: "Discussion on \"What's the Difference? Understanding package.json and package-lock.json Files in Node.js\" | Hashnode"
description: "Discussion on \"What's the Difference? Understanding package.json and package-lock.json Files in Node.js\". When working with Node.js, you may come across two important files in your project directory: package.json and package-lock.json. Although they may look similar, these files serve different purposes and understanding the differences between them is c..."
url: "https://hashnode.com/posts/whats-the-difference-understanding-packagejson-and-package-lockjson-files-in-nodejs/6339c634927266e232d4ea44"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [What's the Difference? Understanding package.json and package-lock.json Files in Node.js](https://roubalsehgal.hashnode.dev/whats-the-difference-understanding-packagejson-and-package-lockjson-files-in-nodejs?utm_source=hashnode&utm_medium=feed)

When working with Node.js, you may come across two important files in your project directory: package.json and package-lock.json. Although they may look similar, these files serve different purposes and understanding the differences between them is c...

Oct 2, 2022 · 2 min read · roubalsehgal.hashnode.dev  
Updated Oct 1, 2023  
Read the article

-   [#web-development](https://hashnode.com/tag/web-development)
-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[Roubal Sehgal](https://hashnode.com/@roubalsehgal)

@roubalsehgal · Gurgaon, India

  
[View profile](https://hashnode.com/@roubalsehgal)

Software Engineer @MakeMyTrip 💻 || Java || Data Structures and Algorithms || Object Oriented Programming

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
