jashkenas / underscore

JavaScript's utility _ belt
https://underscorejs.org
MIT License
27.29k stars 5.53k forks source link

Npm install fails due to post install script #2968

Closed theTechGoose closed 1 year ago

theTechGoose commented 1 year ago

hello, I cannot deploy my firebase project because this is a dependency to alot of packages I have installed. The remote build bails with code 127 and says 'sh: patch-package: command not found'

I tried to install the package locally and the same thing happens when I run npm install underscore --force. How can I fix this?

vincent-ogury commented 1 year ago

duplicate this: https://github.com/jashkenas/underscore/issues/2967

evan-coygo commented 1 year ago

same, i'm unable to deploy to production right now because this breaks the build

iglosiggio commented 1 year ago

You can add patch-package as a devDependency in your project (as a hacky workaround, i don't really like the idea of a dependency patching other dependencies). EDIT: No, I was wrong you need a global install (the child package doesn't have visibility of binaries under node_modules/.bin)

jgonggrijp commented 1 year ago

I just released 1.13.6, hopefully that fixes it. Please close if that is the case.