Posts

Showing posts with the label react

NPM is good friend of every web-developer in JavaScript community

Image
                                          Yes! It is true and I feel it too as a beginner, do you feel the same?  Section 1:   What is NPM? NPM stands for Node Package Manager is open source command line tool use as package manager for Node.js, front-end web apps (react app), mobile apps, robots, … and many more. Here we will talk about npm in terms of Node.js only. (I m using windows  10) Section 2:    Installation Lets start it by installing Node.js first because npm comes with  Node.js.  So, head over to official website of nodejs : https://nodejs.org/en/ After Node.js downloaded, To confirm that you have npm installed you can run  below command in your terminal. npm -v Note: that my version is 6.14.8 your version can be different. So there is Package.json file in Node.js project. It is metadata of the project, basically it store all the information of project. To create package.json go to cmd and change directory(cd) to your project folder:   Note: My project folder is “npm”.