Copynpm install -g npm@latest MacOS and Linux systems might have permission issues, running in sudo mode solves this i.e Copysudo npm install -g npm@latest