XervoIO / docker-build-node

The Docker build image for Modulus Node.js applications.
Apache License 2.0
2 stars 1 forks source link

Cannot login to npm #13

Closed theworkflow closed 7 years ago

theworkflow commented 7 years ago

When deploying project and trying to log into npm here's the output

Deploying project into Node.js runtime...
Starting build.
Creating directories for build environment.
Downloading source.
Executing build.
Package found: /package.json
Installing node 7.4.0
Installing npm 4.1.1
/usr/bin/env: expect: No such file or directory
Build attempt failed, attempting again.
jackboberg commented 7 years ago

expect is not installed:

› docker run -it --rm onmodulus/build-node bash
root@bb1b0bd4d9a1:/# which expect
jackboberg commented 7 years ago

the right solution here is to probably deprecate this approach in favor of something based on NPM_TOKEN env var:

if [[ $NPM_TOKEN ]]; then
    echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > "${HOME}/.npmrc"
fi