Closed wottpal closed 3 years ago
Peer dependencies are automatically installed as of npm 7. For npm versions 3.x-6.x, here is a workaround you might try:
npm install -g install-peerdeps
install-peerdeps -g @apidevtools/swagger-parser
Needless to say, if you are installing swagger-parser as a dependency in your own project, leave off the -g
in the second line
I already opened an issue here (https://github.com/Surnet/swagger-jsdoc/issues/218), but I think here it's more appropriate.
How do I fix this warning? Why is
openapi-types
not installed automatically with the correct version?