Quantcast
Channel: Npm install cannot find module 'semver' - Stack Overflow
Viewing all articles
Browse latest Browse all 48

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

$
0
0

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 all articles
Browse latest Browse all 48

Trending Articles



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