microsoft / dts-gen

dts-gen creates starter TypeScript definition files for any module or library.
MIT License
2.43k stars 102 forks source link

dts-gen is not able to find globally installed modules #86

Closed vivekmore closed 6 years ago

vivekmore commented 6 years ago

I have installed dts-gen globally npm i -g dts-gen

I installed the target module globally npm i -g jhipster-core

When I run dts-gen -m jhipster-core -o

I get the following output:

Couldn't load module "jhipster-core". Please install it globally (npm install -g jhipster-core) and try again.

I am working on a Windows 10 PC and executing the commands on the windows command prompt.

matez commented 6 years ago

I experienced the same issue. It looks like error message itself is misleading in situation when module has "peer dependencies" which are not installed.

vivekmore commented 6 years ago

Yep - you are right @matez! I got it working by solution provided on stackoverflow.

slavafomin commented 4 years ago

Hello! I'm experiencing the same issue with @babel/preset-env.

Why is this issue closed without a fix? @RyanCavanaugh could you reopen it, please?