IBM/openapi-validator

Unable to install v0.51.2 in node image

Closed this issue · 3 comments

Am unable to install latest validator image v0.51.2 in any main node container images provided by https://hub.docker.com/_/node/. This is breaking the current master build of the community docker image (see https://github.com/jamescooke/openapi-validator-docker/issues/97 for more details of my vague attempts at hacking a fix.)

The error is:

Step 3/5 : RUN npm install -g ibm-openapi-validator@${version}
 ---> Running in 8cd6fd914d84
npm WARN deprecated @stoplight/spectral@5.9.2: Spectral's latest version is now available as @stoplight/spectral-cli on npm
npm notice 
npm notice New major version of npm available! 7.24.0 -> 8.0.0
npm notice Changelog: <https://github.com/npm/cli/releases/tag/v8.0.0>
npm notice Run `npm install -g npm@8.0.0` to update!
npm notice 
npm ERR! code 127
npm ERR! path /usr/local/lib/node_modules/ibm-openapi-validator
npm ERR! command failed
npm ERR! command sh -c npx npm-force-resolutions
npm ERR! npm WARN exec The following package was not found and will be installed: npm-force-resolutions
npm ERR! sh: npm-force-resolutions: not found

Probably related to the change in #335

Any help or guidance on how to install now? Or if there are specific version of npm / node / or packages that need to be installed? Please feel free to answer here or on the linked issue 🙏🏻

@jamescooke Thanks for opening this so its tracked here - we are aware of the situation and are investigating!

@jamescooke v0.51.2 had a bug. A patch has been released in v0.51.3

Thanks for the quick fix 👍🏻 ... I'll get the v0.51.3 container out today hopefully.