Quantcast
Viewing latest article 37
Browse Latest Browse All 48

Answer by Vineet Sajwan for Npm install cannot find module 'semver'

This issue usually comes when node js and npm versions are not compatible.To fix this in Ubuntu (my version was 20)

  1. Uninstall node js and npm.
    • apt remove npm
    • apt remove nodejs
    • which node (it will return node js files path)
    • Delete node directory
  2. Install NVM
  3. Install node
    • nvm install e.g. nvm install 8.16
    • Above command will itself install node js and its compatible NPM.

Viewing latest article 37
Browse Latest Browse All 48

Trending Articles



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