This error occurred when running npm install. The error is:
npm ERR! Cannot read property 'pickAlgorithm' of null
npm ERR! A complete log of this run can be found in:
npm ERR! npm-cache\_logs\2022-12-14T08_03_47_266Z-debug.log
Solution 1: Cache Clear
First, run this command:- npm cache clear –force
Then run this command:- npm install
Solution 2: set npm config
Set npm config registry just like this.
npm config set registry https://registry.npmjs.org/
Also run npm install with registry options for multiple custom registry URLs.
npm install --registry=https://registry.npmjs.org/
npm install --registry=https://custom.npm.registry.com/