node.js Tutorials

1. npm ERR! Missing script: "start"

By: Deepak Mishra : 2023-04-03

Description: The error message indicates that the start script is missing in your project's package.json file. You can add a start script to your package.json file to define the command to start your project. Here's an example


2. npm ERR! enoent ENOENT: no such file or directory, open C:UsersusernameAppDataLocal pm-cache\_cacache mpgit-clonexxxxpackage.json npm ERR! enoent This is related to npm not being able to find a file.

By: Deepak Mishra : 2023-04-03

Description: This error message typically indicates that NPM is unable to find the package.json file for the project you are trying to install or run. Here are a few possible solutions you can try


3. package.json vs package-lock.json in react-native project

By: Henry : 2023-04-03

Description: Both package.json and package-lock.json files are used in Node.js and NPM (Node Package Manager) projects to manage dependencies and packages.


4. Is it safe to run 'npm audit fix'?

By: Henry : 2023-04-03

Description: Running npm audit fix is generally safe, and it is a good practice to fix vulnerabilities reported by npm audit in your Node.js project.


5. Node.js as a HTTP Server - Building from scratch - Tutorial for Beginners

By: William Alexander : 2018-08-04

Description: This node.js tutorial is for a beginner to understand the basics of node.js from scratch. More specifically, this tutorial explores how node.js can be used as a HTTP server to handle HTTP requests and serve files. Since this assumes that you are just beginning to learn node.js, I will start from explaining what is node.js and how to install it and then continue with the step by step guide.


6. Event driven programming in node.js

By: William Alexander : 2018-08-04

Description: In olden days when there was no GUI, the programs normally were run sequentially in a blocking manner. But with GUI, the event driven programming became popular as events were generated by the user in the form of mouse clicks.


7. Send email from node.js application

By: William Alexander : 2018-08-04

Description: In this tutorial, we will learn how to send emails from node.js applications. In any application, sending out alerts and notifications via email becomes an integral part. Node.js has a package for sending mails and it is called nodemailer.