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
npm install from master broken #1180
Comments
This seems to be the problem https://github.com/tgriesser/knex/blob/master/package.json#L59 npm tries to install knex client to |
Is there a quick fix for the time being? |
You could probably fork the repo and remove the |
Tracking issue: npm/npm#11395. |
So it looks like the |
Okay, so I've been looking at this for over three hours and I'm going to leave this for a bit. Seems that We can get There does not seem to be a trivial way to do this cleanly. If we make a proxy Perhaps it would be acceptable to require users to actually navigate into the Otherwise we could add a Thoughts? |
@rhys-vdw tldr; Agreed. I think it is valid approach to require people to do some extra steps when installing knex directly from github... After installing from github one has to install also the dev dependencies and build the library in To prevent install from github from failing I suppose that the proxy solution is good enough. At least I don't have any better ideas to make it happen. If someone send us pull request for the automated solution which checks if library has already been built and install dev deps and build it on demand I would accept it too. In either way the proxy |
@rhys-vdw Actually since this issue doesn't affect to npm release and github install gets fixed right away when fix for this is done... we could make the npm release right away and fix this afterwards? |
I am sorry having apparently opened a can of worms with this issue. I have been using the master version from github for a while but since the #1149 pull, everything stop working for the reasons you explained above. As @elhigu mentioned, I really don't mind doing a few extra steps to install dependencies to do my own build when installing knex directly from github. Especially if those steps can be simplified to a few one liners. Thanks guys! |
@intensite Ok, good to know that this is not a show stopper for you. However I believe we should fix at least the error part of copying |
Long quiteness while problemous release in npm... 😟 |
@vellotis npm release is working fine. Problem in this issue is when one is installing e.g. master directly from github instead from npm release. If you are having right now problem with this, easiest way will be if you fork this repo, remove If you are into putting a bit more effort to this, pull request is welcome, which moves |
Strange is that I see the ENOENT issue while installing from npm. https://gist.github.com/vellotis/aafdb17aa63884e5fd3e No "knex" folder gets created to node_modules folder. I think it is beacuse the install command fails. Any suggestions? |
Another strange thing is that on another environment it works like a charm. Both using using v0.12.7 and npm v2.11.3. I will investigate further... |
Seems that by using "sudo" in my one of the environments causes ENOENT. So it is somekind environment issue. I will call it false alarm. Sorry. |
I am having the same issue;
works but
fails
|
Updated to the latest knex, the problem is still there. Temporarily fix the problem with |
@statyan you clever beast |
Hello,
It appears that the change to remove the lib directory is causing issues when knex is installed from master using npm.
As you can see this is from a Windows installation. I am using the version from the master repo as I need MSSQL support.
Can this commit be the cause: #1149
The text was updated successfully, but these errors were encountered: