jan-molak / describe-module

A tiny library to help you find out where a given node module has been installed
Apache License 2.0
2 stars 0 forks source link

Error on postinstall #1

Open thiagodp opened 5 years ago

thiagodp commented 5 years ago

Hi @jan-molak , thanks for such a useful library.

I'm reporting an error that occurs when installing it.

npm install describe-module --save

generates an error:

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! describe-module@0.1.1 typings: `typings "install"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the describe-module@0.1.1 typings script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

In the library's package.json:

"postinstall": "npm run typings -- install",

Since typings is a devDependency (only), it would be better removing the postinstall script, right?

Thank you!

jan-molak commented 5 years ago

Hi @thiagodp! Thanks, I'm glad that you found it useful :-) Absolutely, please feel free to submit a PR.