Short-tips

Fixing “Missing write access” error when using NPM

The error “Missing write access ____” generally occurs while installing the node modules as a global package. It somehow looks like this in the console. Missing write access to /usr/local/lib/node_modules This error is generated due to improper permission. To fix this, we need to provide the proper permissions to the directory. Run this command. sudo …

Fixing “Missing write access” error when using NPM Read More »

How to Validate an Email Address in JavaScript

In this short tip post, we will learn how to validate an email address in JavaScript using Regular expressions. Objective Validate the input email address using Regular expression in plain JavaScript. Approach Email addresses are consists of two parts: Local part Domain part Local part can be a combination of strings, numbers and alphanumeric and …

How to Validate an Email Address in JavaScript Read More »