'npm ERR! Cannot read properties of null (reading 'pickAlgorithm')

iam getting below error with npm while creating react app

npm ERR! Cannot read properties of null (reading 'pickAlgorithm')

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Nagamanickam\AppData\Local\npm-cache_logs\2021-11-18T12_01_45_525Z-debug.log



Solution 1:[1]

my npm version is 8.1.4 and i solve this problem by running :

npm cache clear --force

Solution 2:[2]

I resolved it by deleting node_modules and package-lock.json and run npm install again.

Solution 3:[3]

Probably it's a project that works with Yarn and not NPM. Try Yarn instead of NPM.

yarn install

and then you can do

yarn start

or

npm start

Solution 4:[4]

In my case the file .npmrc was corrupt. After deleting it everything worked.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Venom X
Solution 2 Nils Reichardt
Solution 3
Solution 4 Simon Martinelli