Skip to content

[email protected] cannot be installed without package-lock.json #79

@everett1992

Description

@everett1992
$ npm init -y
$ npm install union
npm ERR! code 1
npm ERR! path /home/ANT.AMAZON.COM/calebev/tmp/node_modules/union
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: [email protected]
npm ERR! Error: ENOENT: no such file or directory, open './package-lock.json'

This is a bug in npm-force-resolutions, but the issues have been open for a while and the last commit was 3 years ago so I don't think it will be fixed.

union could use npm 8's overrides, or use force-resolutions, or npm-force-resolutions || true.

rogeriochaves/npm-force-resolutions#10
rogeriochaves/npm-force-resolutions#36
rogeriochaves/npm-force-resolutions#66

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions