Getting “Cannot read property ‘pickAlgorithm’ of null” error in react native

Total
0
Shares

I get an error 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_logs2021-10-14T08_03_47_266Z-debug.log

I did the following but the error stays:

  1. Deleted node-modules
  2. Deleted the given file
  3. Running npm cache clear --force

Environment:

OS: Windows 10
react native: 0.65.1
Node: 14.17.4
npm: 7.21.0


Solution

Upgraded to npm v7.23.0 and then npm install and working fine.

Source: StackOverflow.com

Leave a Reply

Your email address will not be published. Required fields are marked *