I was gong to run coin-hive in a container, so I grabbed the latest node container and attempted to install coin-hive, but sadly ran into an issue.
Here's the Dockerfile
FROM node
# Force the mkdir, the node install fails
RUN mkdir -p /usr/local/lib/node_modules/coin-hive/node_modules/puppeteer
RUN npm install -g coin-hive
Attempting to build the container looks like this...
$ docker build -t coin-hive --rm .
Sending build context to Docker daemon 5.632kB
Step 1/3 : FROM node
---> 3d1823068e39
Step 2/3 : RUN mkdir -p /usr/local/lib/node_modules/coin-hive/node_modules/puppeteer
---> Running in 194e6784ae25
Removing intermediate container 194e6784ae25
---> ec642a8d1dd0
Step 3/3 : RUN npm install -g coin-hive
---> Running in 5737d9e5b3c8
npm ERR! opts.mkdirpAsync is not a function
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2017-12-18T16_30_44_644Z-debug.log
The command '/bin/sh -c npm install -g coin-hive' returned a non-zero code: 1
I was gong to run coin-hive in a container, so I grabbed the latest node container and attempted to install
coin-hive
, but sadly ran into an issue.Here's the
Dockerfile
Attempting to build the container looks like this...
Googling around for
ERR! opts.mkdirpAsync is not a function
I found the following issue npm throwTypeError: opts.mkdirpAsync is not a function
when I runnpm link
#17129Is there a workaround or a fix?