Need help for these errors "[ERROR] An error occurred while running subprocess npm".&& "npm ERR! Response timeout while trying to fetch https://registry.npmjs.org/cordova-lib"

ionic start devCart blank
gives error
[ERROR] An error occurred while running subprocess npm.

npm install -g cordova
gives
npm ERR! Response timeout while trying to fetch https://registry.npmjs.org/cordova-lib

npm update npm -g
gives this error
npm ERR! code EINTEGRITY

solutions i have tried
npm cache verify
npm cache clean -f
npm config set registry https://registry.npmjs.org/
npm list -g --depth=0
npm install rxjs@6.5.4 tslib@^1.10.0 tslint@^5.0.0
npm install @ionic/app-scripts@latest --save-dev

The exact same thing is happening to me
npm ERR! Response timeout while trying to fetch http://registry.npmjs.org/@ionic%2Futils-subprocess (over 30000ms)
If you get a solution please share it.