Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 5970

npm ERR! Class extends value # is not a constructor or null

$
0
0

I had npm problems,While initializing nodejs project,And while installing npm packages.

There are 2 ways to fix it.

FIRST WAY

Change permissions, or ownership of npm.This will work, only if you are having such errorwhen you are not using sudo with npm.link showing how to change npm permission

SECOND WAY

I had this error because of nvm,

  1. Uninstall nodejs and npm
  2. Uninstall nvm
  3. Install nodejs & npm by following command:
sudo apt install nodejs npm

Viewing all articles
Browse latest Browse all 5970

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>