# A Little About NPM

## What’s NPM

NPM ( Node Package Manager ) is the official package manager for Node.js or in python you can call this it PIP

## Its use

* Installing libraries or packages from outside
    
* Manage dependencies ( library required by the project )
    
* Provides a registry at npmjs.com
    

## Standar Project

Project Node.js usually have file ‘ package.json ‘ for configuration center

## Step by step

* First you can open terminal or git bash and choose your location to study or create a new folder, for example i want to create folder for project in future
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1757230147758/51b83534-4b02-48c7-a2bc-c7b130204364.png align="center")
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1757230226530/2a0ba060-7ab2-4127-9ac4-e036340ff5f7.png align="center")
    
* Write 'npm init -y' to initialize npm if you have downloaded node.js otherwise you can read my other article about installing node.js, ‘npm init -y‘ for simple initialize and ‘npm init‘ for initialization and full configuration package.
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1757230256748/2f97f733-d68b-4172-94df-cf8ec0def20e.png align="center")
    
* config your npm like this
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1757231370948/66ba9cea-08b6-45e9-a597-aa1d63600f73.png align="center")
    
    ls for check the content into folder
    
    add `“type“ : “module“,` after “main“, and don’t forget comma, and remove content in script and write `“start“: “node index.js“` like this.
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1757231390885/edfe9221-d3a8-4edb-a8db-93d5bb9169da.png align="center")
    
* create file input.js and follow me
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1757230771896/f11251bd-75b4-4131-a599-0b8a52b6d7d2.png align="center")
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1757230793740/5709e17a-9f7d-47a9-a888-dfac77c17e2f.png align="center")
    
* create more file index.js
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1757230829760/01054da8-48bf-48cc-b542-25f1b15a7f6c.png align="center")
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1757230836489/5d5c91e7-e008-404c-a080-af73b2c6689a.png align="center")
    
* you can try the code by writing `npm start`
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1757238144181/394eeb6c-2a6c-475a-ad19-ae3a0cbdf5e0.png align="center")
    
    This is an error, if you get an error like me, you can open a terminal and run the code there, this error is caused by an error in the terminal MINGW64
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1757238469097/359cfa03-fd88-4813-a876-aed2dbc925c6.png align="center")
    

END !!

Thank you for your attention, wait for my other content on my bolg,

Seee you next time.
