0

I created a new angular project with ng new and then attempted to install angular/fire with ng add @angular/fire. When I do this, I get the error:

Skipping installation: Package already installed
An unhandled exception occurred: Cannot find module 'semver'
Require stack:
- (private path)/node_modules/@angular/fire/schematics/ng-add-common.js
See "/private/var/folders/n0/3hy73lxs3xs_fv3ms7fp0s7h0000gs/T/ng-JtAvhM/angular-errors.log" for further details.

I went through with the advice on this post (Npm install cannot find module 'semver') to uninstall node and npm globally and then reinstall, but that did not work.

I instead ran npm i @angular/fire, and that worked.

Darrow Hartman
  • 2,359
  • 2
  • 12
  • 29
  • Does this answer your question? [Npm install cannot find module 'semver'](https://stackoverflow.com/questions/33870520/npm-install-cannot-find-module-semver) – Necip Sunmaz Dec 18 '21 at 23:35

0 Answers0