Home > Software design >  Whenever I try to build a new ionic project angular from console it give me, npm ERR! Cannot read pr
Whenever I try to build a new ionic project angular from console it give me, npm ERR! Cannot read pr

Time:10-12

npm ERR! Cannot read properties of undefined (reading 'isServer') i updated npm to latest version, i tried to force clear the cache didn't resolve. Anyone can help?

CodePudding user response:

The problem is npm modules are unable to download from node repository central, i suggest you to follow below steps....

1)Run Command npm config edit 2)then proxy file opens in notepad 3)try to add registry=https://registry.npmjs.org/ and save 4)make sure to add strict-ssl=false in case above doesnt work... Thanks !!!!!

CodePudding user response:

I downgraded the node version to 14.0.0 using nvm version, if anyone having same problem, this was my solution! :)

  • Related