How to install Node Package Manager(npm) for the logged-in user without admin access

Follow these steps to install npm for your logged-in user if you do not have admin access.  – Download the stable npm package for the desired version from the [npm registry](https://registry.npmjs.org/npm/-/npm-{VERSION}.tgz).  – Unzip the npm-{VERSION}.tgz package.  – Open a command prompt and navigate to the unzipped npm folder.  – Execute one of the following commands… Continue reading How to install Node Package Manager(npm) for the logged-in user without admin access

Cross-Origin Requests with the CORS NPM Package

Cross-Origin Resource Sharing (CORS) is a security measure browser use to control requests between different web origins. When your web page wants to fetch data from a different domain, CORS ensures it’s done securely. CORS Headers: Access-Control-Allow-Origin: Specifies which origins can access the resource. Access-Control-Allow-Methods: Defines which HTTP methods are allowed for accessing the resource.… Continue reading Cross-Origin Requests with the CORS NPM Package

Resolve Error: Cannot find module ‘underscore’.

When you have cannot find module x errors, one thing that might help sometimes is deleting the whole npm_modules folder and just running npm install again. Sometimes, on the initial npm install, it might of failed to get one dependency for a package and it won’t try to get it again when you run npm… Continue reading Resolve Error: Cannot find module ‘underscore’.