Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

node.js

npm

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

like image 679
Nagamanickam Avatar asked Sep 03 '25 05:09

Nagamanickam


2 Answers

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

like image 121
Nils Reichardt Avatar answered Sep 04 '25 20:09

Nils Reichardt


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

npm cache clear --force

like image 44
Nachat Ayoub Avatar answered Sep 04 '25 19:09

Nachat Ayoub