winston: Cannot install on docker after 3.3.0/3.3.1
npm ERR! path git
npm ERR! code ENOENT
npm ERR! errno ENOENT
npm ERR! syscall spawn git
npm ERR! enoent Error while executing:
npm ERR! enoent undefined ls-remote -h -t ssh://git@github.com/DABH/diagnostics.git
npm ERR! enoent
npm ERR! enoent
npm ERR! enoent spawn git ENOENT
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
Looks like this is related with #1813, and it still happens when trying to install on docker with nodejs 12.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 8
- Comments: 23 (6 by maintainers)
Commits related to this issue
- fix(dependencies): tempo downgrade winston: https://github.com/winstonjs/winston/issues/1814 š — committed to weareopensource/Node by PierreBrisorgueil 4 years ago
- Specify exact version of winston dependency Work around for issue winstonjs/winston#1814 Signed-off-by: James Taylor <jamest@uk.ibm.com> — committed to jt-nti/fabric-chaincode-node by jt-nti 4 years ago
- Specify exact version of winston dependency Work around for issue winstonjs/winston#1814 Signed-off-by: James Taylor <jamest@uk.ibm.com> — committed to hyperledger/fabric-chaincode-node by jt-nti 4 years ago
- [#1813] Use fork of diagnostics, avoiding indirect storage-engine dependency — committed to winstonjs/winston by DABH 4 years ago
- [#1814] Use fork of diagnostics on NPM to avoid making Docker images require git — committed to winstonjs/winston by DABH 4 years ago
- chore(release): 1.0.0 # 1.0.0 (2020-07-25) ### Bug Fixes * **apis:** fix due to lou change š ([c32a484](https://github.com/weareopensource/Node/commit/c32a484804d620d679ac99dc0c29222ce7d616cd)) * ... — committed to weareopensource/Node by semantic-release-bot 4 years ago
- chore(release): 1.0.0 # 1.0.0 (2020-07-25) ### Bug Fixes * **auth:** message sign in š ([96f8435](https://github.com/weareopensource/Node/commit/96f8435a113fc44aac2b5767d6aff60f8e039617)) * **conf... — committed to weareopensource/Node by semantic-release-bot 4 years ago
- chore(release): 1.0.0 # 1.0.0 (2020-07-25) ### Bug Fixes * **auth:** message sign in š ([96f8435](https://github.com/weareopensource/Node/commit/96f8435a113fc44aac2b5767d6aff60f8e039617)) * **conf... — committed to weareopensource/Node by semantic-release-bot 4 years ago
- Merge 2.3 (#227) * [FABCI-482] Update Nexus URL's to Artifactory Signed-off-by: Brett Logan <brett.t.logan@ibm.com> * [FABCN-377] Prepare v2.0 release Signed-off-by: James Taylor <jamest@uk.... — committed to hyperledger/fabric-chaincode-node by jt-nti 4 years ago
All,
v3.3.2has been released, this downloads the forkeddiagnosticsdependency from NPM not GitHub so it should work for you. Please feel free to confirm or deny. Thanks!@DABH @Kivol
hum, yep, I understand, Thx š
For me the solution remains temporary and the issue should not be closed.
An NPM package should not require git for installation but only npm. If you use a FORK from another package because this one does not correspond to your need. I think this FORK must be integrated at the source or become a project maintained for Winston and therefore published as you suggested. It would be quite strange to impose the installation of git or any other tools for the installation of an npm package, for hundreds docker image. Images and process must be as lite as possible
Hi, I just want to express that git shouldnāt be a dep for winstonjs. Hope this can be resolved. We have a few hundreds of docker images and I donāt think modifying all of them would be very ideal. And I am sure a lot of us would feel the same. š
If 3.3.x really does have such breaking change, we should move it to 4.x instead.
@DABH @Kivol
Thanks for the active comments, please have patience for a couple hours as we try to roll out a better (non-git-dependent) solution for this.
Yes Iāve come up with the same solution.(I couldnāt even imagine that git isnāt shipped on alpineā¦) Iām fine with that solution.
The problem was not with winston so Iām closing this. Thanks for the help!
+1 for this issue, this breaks our CI pipeline. Please revert the changes.
Just to say that I think the comments above shows clearly how much Winston is used and depending on by many projects. So whilst itās a pain when issues occur - I hope I speak for many - when I say we do value the contribution Winston and itās developers make.
Thanks for the fix.
Same problem here, please fix it. Unfortunately winston is installed as a module of a subdependency, so we can not directly modify the version. This breaks our CI pipeline that has no access to public github.
I have the same problem not in a docker image but in my enterprise network.
I use artifactory for download all dependencies (npm and github was blocked). If you use your fork, all projects without public access will fail. The biggest impact is for companies or CI/CD with restreint access.
For my point of view if you want keep your fork, you need to be standard and create a new package npm and not referer to a github repo.
Same problem here, but not only in docker. I canāt npm install my project because of this dependency :
Wow, this one breaks the internet⦠š Very strange to require git indeed.
Second the comments above about this change being a breaking change. We have alpine docker images in production that will break due to this.
If this is required, then would support a 4.x change.
Ah, because the dep is coming from github, you need gitā¦
I understand thatās not a great solution. The alternative is I have to publish my
diagnosticsfork on NPM, but that package is already on NPM so I guess Iād need to change the name of my repo or something so I can publish uniquely. Any tips welcome else Iāll look at this later today.