Dockerfile - Unexpected Token Error In Mocha
Below is the dockerfile which is stored as image tag somehub/someapp-specs: FROM ubuntu:trusty MAINTAINER Developer team # Prevent dpkg source ENV T
Solution 1:
That's because Mocha require node >6.0 but yours 4.x
As of v6.0.0, Mocha requires Node.js v6.0.0 or newer.
Try to upgrade your node by using Node image:
FROM node:10.16
or you can update your current dockerfile like so:
RUN apt-get update && \
apt-get install curl -y && \
curl -sL https://deb.nodesource.com/setup_10.x | bash - && \
apt-get install -y nodejs
Post a Comment for "Dockerfile - Unexpected Token Error In Mocha"