cancel
Showing results for 
Search instead for 
Did you mean: 

How to resolve this npm ERR! Cannot read property 'pickAlgorithm' of null issue ?

Jidnyasa
Explorer
0 Kudos

Hi experts,

I have cloned https://github.com/SAP-samples/cap-sflight into BAS and I am trying to build mta but I am getting this following error

Can I get any solution for this issue?

Thanks in advance.

Hi Jisnyasa, have you been able to solve this issue ? Im having the same. Issue in BAS and still not able to solve it 😞 thanks for your comments

mishra_mayank
Explorer

Hi david.coiro

Try adding .npmrc file or try running this command npm config set registry https://registry.npmjs.org/. This worked for me

Thanks.

arsiluk
Explorer
0 Kudos

I too am having the same issue, after attempting all the proposed solutions. There is a closed issue regarding this on the npm github, apparently something similar was occurring over the summer of 2021. I commented on there regarding the issue in an attempt to get their attention to reopen it. The link to the issue is : [BUG] Cannot read property 'pickAlgorithm' of null · Issue #3374 · npm/cli (github.com)

Tellys
Newcomer
0 Kudos
The article below answered your question well. https://www.conteudopertinente.com.br/npm/pickalgorithm-npm-error/

Accepted Solutions (0)

Answers (2)

Answers (2)

gregorw
Active Contributor

Maybe it helps if you apply a .npmrc file in your project as I've described in: How to avoid changes in package-lock.json when using local and BAS development in parallel?

chgeo
Advisor
Advisor
0 Kudos

Seems to be an issue with npm itself. See e.g. https://stackoverflow.com/q/69567381

Jidnyasa
Explorer
0 Kudos

I have tried this one but same issue persists

image

I also try there but still not able to resolver this error message 😕