-4

I received error when execute comand npm install, error cannot found module "semver". Searching in foruns i found command npm i cjs. The comand resolve this error but i read documentation and i dont undersand what problem i resolve and how module work.
I tried remove node_modules, but the problem dont resolve.

I need understand how command work npm i cjs.

my search source was https://www.npmjs.com/package/cjs-module

  • 2
    The `cjs` module is not the same thing as the `cjs-module`; neither of them appear to be related to the `semver` module not being found. (Most likely the problem is that the package you are trying to install (which you told us nothing about) depends on `semver`, and uses it in a post-install script, but fails to include it in its stated dependencies. – Quentin Aug 31 '23 at 21:10

0 Answers0