geneseframework / complexity

Analyzes cyclomatic and cognitive complexity of source code
MIT License
22 stars 4 forks source link

Error: Cannot find module #52

Closed JakubGIT closed 3 years ago

JakubGIT commented 3 years ago
  1. installed: npm i -g @genese/cli and npm i -g genese cpx (npm i -g Genese Cpx as per README.md didn't work)
  2. called: genese cpx ./src
  3. I get error:
    
    Welcome to @genese cli
    internal/modules/cjs/loader.js:905
    throw err;
    ^

Error: Cannot find module 'C:\Users\jkopecky\AppData\Roaming\npm\node_modules\@genese\cli\dist\src\..\..\..\complexity\dist\package.json' Require stack:

What do I do wrong?

thanks!

geneseframework commented 3 years ago

Hi Jakub, and thanks for your interest in our module.

There is a mistake on the README.md on the 1.1.15 version, which is now fixed in the 1.1.18 version.

You need to install Genese Cpx with the command line below :

npm i -g @genese/complexity

It is also possible that some other bugs persist in the actual version of Genese Cpx for the Windows users (problems with windows directory paths).

Thanks to tell us if all is ok now, or if some bugs persist !

Best,

Gilles

JakubGIT commented 3 years ago

Hi Gilles,

it works!!

Thank you very much for the speedy reaction! :-)

geneseframework commented 3 years ago

Cool !

Out of curiosity, do you use it for a student project, or a professional one ? We like to know in what context our module is used, and if it is relevant for small or big projects.

Don't hesitate to give us your feedback ! :)

Best, Gilles

JakubGIT commented 3 years ago

my bachelor thesis. It's a MS SharePoint web part with typescript and react - a small project.

Kind regards

Jakub