Just after synk got updated to v1.1045.0, npm-cli-login started having this issue
$ npm i -g npm-cli-login
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
/root/.nvm/versions/node/v14.15.5/bin/npm-cli-login -> /root/.nvm/versions/node/v14.15.5/lib/node_modules/npm-cli-login/bin/npm-cli-login.js
> snyk@1.1045.0 postinstall /root/.nvm/versions/node/v14.15.5/lib/node_modules/npm-cli-login/node_modules/snyk
> bash ./scripts/apply-patches.sh
bash: ./scripts/apply-patches.sh: No such file or directory
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! snyk@1.1045.0 postinstall: `bash ./scripts/apply-patches.sh`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the snyk@1.1045.0 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2022-10-31T10_14_48_295Z-debug.log
Just after synk got updated to v1.1045.0, npm-cli-login started having this issue