Open pahlers opened 2 years ago
I've got more or less the same problem, but on my end the error is "Cannot find module '@babel/preset-env'".
Require stack:
Same here with Cannot find module '@babel/preset-env
on halstead or cyclomatic complexities.
Same here with Cannot find module '@babel/preset-env
on halstead or cyclomatic complexities.
Running
npx code-complexity . -cs halstead
returns the errorError: Cannot find module '@babel/plugin-transform-typescript'
Error
Tested with
Os: Linux
I have no clue what is going wrong.
/home/peter/.nvm/versions/node/v14.19.1/lib/node_modules/code-complexity/node_modules/@babel/plugin-transform-typescript
is installed.