gatsby-docker icon indicating copy to clipboard operation
gatsby-docker copied to clipboard

eslint incompatible with node

Open fabriciomurta opened this issue 5 years ago • 2 comments

Currently running the command in a clean repo results in this:

Command: docker run -it --rm -v $(pwd)/site:/site -p 8000:8000 aripalo/gatsby-docker develop

Result: image

The first thought before any in-depth investigation is that it pulls latest version of eslint, yet sticks to a given version of node; eventually node version became outdated in regard to the eslint one and this triggered. Could be as simple as updating the dockerfile to point to more up-to-date packages.

fabriciomurta avatar Mar 26 '19 15:03 fabriciomurta

Upgrade node with npm

sudo npm cache clean -f
sudo npm install -g n

DaniCastel avatar May 17 '19 15:05 DaniCastel

Probably the upgrade shouldn't be done like that, but pointing the dockerfile to the right/supported node image version -- if it is the case that the docker image is referencing older nodejs version.

fabriciomurta avatar May 17 '19 18:05 fabriciomurta