Member-only story

What is package.json and how to install a npm package locally in Node.js?

What is package.json

Ckmobile
5 min readJan 11, 2021

“package.json” is a JSON file and it keeps track of any packages we install locally to our project and other things as well such as project details and any kind of project

If you are planning to use any kind of third-party packages at your project then you should definitely create a package JSON file.

Complete Node.js articles:

Part 1: How to create a HTTP server in Node.js

Part 2: How To Use the `req` Object in in Node.js

Part 3: How To Use the `res` Object in in Node.js

Part 4: How to render HTML in Node.js

Part 5: Node.js routing without using Express.js

Part 6: How to specify statusCode in Node.js

Part 7: How to redirect user’s browser URL to a different page in Nodejs?

Part 8: How to download and install a npm package globally in Node.js?

Part 9: What is package.json and how to install a npm package locally in Node.js?

Full Course:

--

--

Ckmobile
Ckmobile

Written by Ckmobile

Teaching JavasScript, React, React Native, MongoDB and NodeJS https://linktr.ee/ckmobile

No responses yet