Skip to content
This repository has been archived by the owner on Mar 11, 2019. It is now read-only.

Installation error on node:8-alpine image #104

Open
Ridermansb opened this issue Jun 27, 2017 · 0 comments
Open

Installation error on node:8-alpine image #104

Ridermansb opened this issue Jun 27, 2017 · 0 comments

Comments

@Ridermansb
Copy link

Using this Dockerfile ..

  FROM node:8-alpine
  1
  2 ARG NAME
  3 ARG EMAIL
  4
  5 ## Update
  6 RUN apk update && \
  7     apk upgrade && \
  8     apk add --update \
  9       docker git \
 10       python \
 11       python-dev \
 12       py-pip \
 13       build-base
 14
 15 RUN pip install virtualenv && \
 16       rm -rf /var/cache/apk/*
 17
 18 RUN git config --global user.name $NAME && \
 19  git config --global user.email $EMAIL
 20
 21 RUN npm i -g nscale
 22 # RUN usermod -G docker -a `whoami`
 23
 24 RUN nscale help

Error ..

....
npm info lifecycle once@1.3.2~preinstall: once@1.3.2
npm info linkStuff nscale@0.16.1
/usr/local/bin/nscale-init -> /usr/local/lib/node_modules/nscale/lib/postinstall.js
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@0.3.6 (node_modules/nscale/node_modules/nscale-kernel/node_modules/process-container/node_modules/chokidar-child/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@0.3.6: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN request@2.11.4 had bundled packages that do not match the required version(s). They have been replaced with non-bundled versions.

npm ERR! path /usr/local/lib/node_modules/nscale/node_modules/.bin/nscale
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod
npm ERR! enoent ENOENT: no such file or directory, chmod '/usr/local/lib/node_modules/nscale/node_modules/.bin/nscale'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2017-06-27T11_06_55_620Z-debug.log
ERROR: Service 'nscale' failed to build: The command '/bin/sh -c npm i -g nscale' returned a non-zero code: 254

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant