Errors after running npm -v

How do I fix this?
(base) β”Œβ”€[ghost@parrot]─[~/Desktop/my-app]
└──╼ $npm -v
internal/modules/cjs/loader.js:797
throw err;
^

Error: Cannot find module β€˜β€¦/lib/utils/unsupported.js’
Require stack:

  • /usr/bin/npm
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:794:15)
    at Function.Module._load (internal/modules/cjs/loader.js:687:27)
    at Module.require (internal/modules/cjs/loader.js:849:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at /usr/bin/npm:19:21
    at Object. (/usr/bin/npm:153:3)
    at Module._compile (internal/modules/cjs/loader.js:956:30)
    at Object.Module._extensions…js (internal/modules/cjs/loader.js:973:10)
    at Module.load (internal/modules/cjs/loader.js:812:32)
    at Function.Module._load (internal/modules/cjs/loader.js:724:14) {
    code: β€˜MODULE_NOT_FOUND’,
    requireStack: [ β€˜/usr/bin/npm’ ]
    }

Looks like a bad install. I suggest you uninstall if you can (depending on how you installed it), then try a fresh install.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.