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
Is not working inside of Docker Container #215
Comments
Try using the --packageFile option. Some nonstandard usages of ncu trigger its stdin mode. |
Used the --packageData option instead and it worked! Can close, thanks for the help |
Great
|
IMHO, ncu could detect that stdin is not available and then fallback to desired behaviour described above. For the record here is the reported error: ncu -a
Invalid package file from stdin. Error details:
Bad numeric literal - "." at 1:1
package.json
ncu --version
2.15.0
ncu -a --packageFile package.json |
I built a docker container that is only built to run gulp as a task runner. I have tried implementing npm-check-updates into this process so that I could make it easier to update the packages. When I run ncu -u I get a failure error:
Invalid package file from stdin. Error details:
No data, empty input at 1:1
^
(my docker container) exited with code 1.
I know that the package file exists and works correct, as if I only run npm install and gulp everything runs as expected.
If you want to recreate this issue the code for the container I am using is located here:
https://github.com/Skilgarriff/docker-develop
Simply download this then uncomment Line 11 and comment Line 15, 5 and 8 in the dockerfile.
run Docker-compose build, then docker-compose up and the error should be replicated.
The text was updated successfully, but these errors were encountered: