Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Unable to install knex >= 0.12.4 #1746
I setup our CI and do a lot of from scratch/clean npm install of our software. We use knex (^0.12.5) and a bunch of other packages.
Installing all packages in package.json with "npm install", without any existing packages in global or node_modules, fails for knex 0.12.5 as well as 0.12.4. Version 0.12.3 of knex works fine.
The installation of the knex package fails on postinstall with exit code 1
But for some reason I am able to install knex alone (without the other packages in package.json) without any problem:
It seems like any of the packages in packages.json conflicts with what knex >= 0.12.4 is doing in the postinstall script. Only the knex package fails to install, removing it from package.json and I am able to install all the other packages in package.json without a problem.
Any help is really appreciated.
That's strange. So I've gone back and forth and actually didn't want to have this script added to Knex, but I caved and added it back in with #1708. I'll look to get this patched by removing the postinstall for now.
I guess the question here is... if someone wants to install from a specific commit on master, do you think it's reasonable to just ask them to do the work of cd'ing into the dir and running