ousamabenyounes / docker-yellowlabtools

Alpine docker image of YellowLabTools
Apache License 2.0
32 stars 7 forks source link

NPM error when running docker build locally #39

Closed kevinfarrugia closed 8 months ago

kevinfarrugia commented 8 months ago

I cloned the repo locally but I keep getting an NPM error when trying to build the docker image.

$ git clone https://github.com/ousamabenyounes/docker-yellowlabtools.git
$ cd docker-yellowlabtools/
$ docker build .

Error:

194.9 npm ERR! code ENOENT
194.9 npm ERR! syscall chmod
194.9 npm ERR! path /usr/src/ylt/node_modules/media-query-fns/_dist/media-query-fns
194.9 npm ERR! errno -2
194.9 npm ERR! enoent ENOENT: no such file or directory, chmod '/usr/src/ylt/node_modules/media-query-fns/_dist/media-query-fns'
194.9 npm ERR! enoent This is related to npm not being able to find a file.
194.9 npm ERR! enoent 
195.0 
195.0 npm ERR! A complete log of this run can be found in:
195.0 npm ERR!     /root/.npm/_logs/2024-02-05T12_59_05_575Z-debug.log
------

Once I resolve this error by connecting to the correct Git repository (https://github.com/YellowLabTools/YellowLabTools-server.git instead of https://github.com/YellowLabTools/YellowLabTools.git) I encounter new errors.

kevinfarrugia commented 8 months ago

@ousamabenyounes I think we can close this issue too as it was fixed in #38