-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
npx npm-force-resolution breaks the install #549
Comments
This is also happening to me |
I am new to NPX rather than just NPM to install/run node commands. In the meantime, can you try running "npm install -g [email protected]" to preinstall the older version of the module, before installing the speech sdk, and see if that resolves the issue. NPX should use the installed version if it can find one, rather than installing the latest version. Thanks, |
When I use "preinstall": "npx [email protected]" my npm audit still shows critical vulnerabilities. |
@BrianMouncer Adding @gabriel-barros-pontes I didn't see any critical vulnerabilities after installing with the preinstall line. Your critical vulnerability is likely caused by another node_module in your package.json. |
@glharper @BrianMouncer please remove |
when using this library with a custom artifact management tool like nexus which is expecting authentication, the preinstall script breaks the implementation. |
@ayrusme @anantoghosh Thanks for reporting this issue and using Speech SDK. We will have a fix in the next release, tentatively scheduled for Jan. 2023. |
@glharper Thank you for your work! |
@ayrusme @anantoghosh The fix for this issue is now in master. Note that you can pull and build this repo using steps in the README on the front page.
Hope this helps. |
@glharper FYI, one of our customers is using AFAIK, their solution does not have Do you think we should bump/replace those 3 deps instead of forcing resolutions? |
@compulim See the two PRs above, which are now in master. npm-force-resolutions has been replaced with overrides, and the "npm preinstall" script has been replaced with "npm setup". Will overrides not work for your pnpm/rush customer? |
Reading from https://docs.npmjs.com/cli/v8/configuring-npm/package-json#overrides and https://pnpm.io/package_json#pnpmoverrides, I think |
thanks! Finally, the global installation is adopted. |
The release of v1.25 should fix this, so I'm closing. |
When I run an npm install the preinstall script breaks the installation process. I've narrowed the issue down to the
npx npm-force-resolutions
. This appears to be a known issue with that library but the only workaround is to downgrade the version of that library to0.0.3
. This is the error I experience when trying to do annpm install microsoft-cognitiveservices-speech-sdk
:Environment:
server: amazon linux 2
node: v14.17.6
npm: v6.14.15
The text was updated successfully, but these errors were encountered: