Alternatively, add .npmrc file at the root of the project (same level you expecting to run 'npm install') and add the:
registry=https://registry.npmjs.org