-
Notifications
You must be signed in to change notification settings - Fork 28
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
Error: ENOENT: no such file or directory, open './package-lock.json' #36
Comments
you can try "preinstall": "npx npm-force-resolutions || echo 1", as a workaround and I would work. |
most likely a duplicate to #10 |
To anyone experiencing this issue, feel free to try: https://www.npmjs.com/package/force-resolutions Just change: "preinstall": "npx npm-force-resolutions" To: "preinstall": "npx force-resolutions" npx force-resolutions does not run when no package-lock.json is detected, and allows the next command inline to be executed as normal. This is useful when installing dependencies for a package that has been already published where package-lock.json is not available. Feedback and PR's are welcome |
The underlying issue is rogeriochaves/npm-force-resolutions#36. The accepted answer is to change npm-force-resolutions to force-resolutions, as this will not run when a package-lock.json is not present, covering the scenario when you install a package (like we do)
bur reproduction workflow:
workaround:
npm i --ignore-scripts && npm i
tested on v 0.0.10
The text was updated successfully, but these errors were encountered: