npm-install icon indicating copy to clipboard operation
npm-install copied to clipboard

support for install with legacy peer dependencies

Open kirandash opened this issue 2 years ago • 2 comments

Currently it seems like it is not possible to run npm install --legacy-peer-deps with this action script.

Can we please add support for it.

kirandash avatar Apr 21 '23 12:04 kirandash

That would be great to have this functionality. Now after upgrading to Node 18 from Node 16, our dependencies are getting resolved successfully locally, however, due to some typescript version mismatch in peerDependencies bahmutov/npm-install action fails to run. --legacy-peer-deps would have fixed the issue.

jphawk avatar Aug 21 '23 14:08 jphawk

I could have done that using the custom install command. https://github.com/bahmutov/npm-install#custom-install-command

      - name: Download deps
        uses: bahmutov/npm-install@v1
        with:
          useLockFile: false
          install-command: npm install --legacy-peer-deps

tommyasai avatar Sep 07 '23 16:09 tommyasai