#!/bin/bash

npm cache clean
rm -fr ./node_modules
NODE_TLS_REJECT_UNAUTHORIZED=0 npm install

#!/bin/bash

npm cache clean --force
rm -fr ./node_modules
NODE_TLS_REJECT_UNAUTHORIZED=0 npm install

Use --force for npm v5
Use --force for npm v5
