rogeriochaves / npm-force-resolutions

Force npm to install a specific transitive dependency version
567 stars 28 forks source link

Tool does not work in NPM workspaces #69

Open noherczeg opened 2 years ago

noherczeg commented 2 years ago

My package is one of many in an NPM workspace setup, where I'd need to run it. I get the following error:

npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c npx npm-force-resolutions
npm ERR! Error: ENOENT: no such file or directory, open './package-lock.json'
npm ERR!     at Object.openSync (node:fs:585:3)
npm ERR!     at Object.fs [as readFileSync] (node:fs:453:35)

I will never have a lock file in this package, because it's at least one folder above.