Home > Back-end >  internal/modules/cjs/loader.js:892 - Error on Node.js npm version check
internal/modules/cjs/loader.js:892 - Error on Node.js npm version check

Time:09-30

Node.js - I'm getting the following error on npm version check.. -> internal/modules/cjs/loader.js:892 throw err

internal/modules/cjs/loader.js:892 throw err

npm -v

internal/modules/cjs/loader.js:892 throw err

npm -v readline-sync

CodePudding user response:

I searched for many ways to figure out and solve this problem and finally I tried deleting the path nodejs\node_modules\npm\bin in Environment variables and it worked fine. Now, npm -v, npm init and all are working without the above error!

  • Related