You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After running docker build -t front . I get the output below.
I thought I had a problem with docker accessing Github (sass/node-sass#2773) but it seems that's not the problem. I can download other packages if I remove package-lock.json and try a fresh install. In that case, I get a different error.
developer@developer:~/Documents/github/olivia-ai/olivia-ai.org$ docker build -t front .
Sending build context to Docker daemon 44.94MB
Step 1/10 : FROM node:lts-alpine
---> e979a7f5b083
Step 2/10 : ARG VUE_APP_URL=ws://localhost:8080
---> Using cache
---> d919a98ac560
Step 3/10 : RUN npm install -g http-server
---> Using cache
---> 6232e267e275
Step 4/10 : WORKDIR /app
---> Using cache
---> 1fb5453410ab
Step 5/10 : COPY package*.json ./
---> Using cache
---> 533fadedbc83
Step 6/10 : RUN npm ci
---> Running in 2064737c43f7
> [email protected] install /app/node_modules/fsevents
> node install
> [email protected] postinstall /app/node_modules/core-js
> node scripts/postinstall || echo "ignore"
Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock
Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
> [email protected] install /app/node_modules/node-sass
> node scripts/install.js
Downloading binary from https://github.com/sass/node-sass/releases/download/v4.13.1/linux_musl-x64-83_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v4.13.1/linux_musl-x64-83_binding.node":
HTTP error 404 Not Found
Hint: If github.com is not accessible in your location
try setting a proxy via HTTP_PROXY, e.g.
export HTTP_PROXY=http://example.com:1234
or configure npm proxy via
npm config set proxy http://example.com:8080
> [email protected] postinstall /app/node_modules/node-sass
> node scripts/build.js
Building: /usr/local/bin/node /app/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [
gyp verb cli '/usr/local/bin/node',
gyp verb cli '/app/node_modules/node-gyp/bin/node-gyp.js',
gyp verb cli 'rebuild',
gyp verb cli '--verbose',
gyp verb cli '--libsass_ext=',
gyp verb cli '--libsass_cflags=',
gyp verb cli '--libsass_ldflags=',
gyp verb cli '--libsass_library='
gyp verb cli ]
gyp info using [email protected]
gyp info using [email protected] | linux | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` failed Error: not found: python2
gyp verb `which` failed at getNotFoundError (/app/node_modules/which/which.js:13:12)
gyp verb `which` failed at F (/app/node_modules/which/which.js:68:19)
gyp verb `which` failed at E (/app/node_modules/which/which.js:80:29)
gyp verb `which` failed at /app/node_modules/which/which.js:89:16
gyp verb `which` failed at /app/node_modules/isexe/index.js:42:5
gyp verb `which` failed at /app/node_modules/isexe/mode.js:8:5
gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:192:21)
gyp verb `which` failed python2 Error: not found: python2
gyp verb `which` failed at getNotFoundError (/app/node_modules/which/which.js:13:12)
gyp verb `which` failed at F (/app/node_modules/which/which.js:68:19)
gyp verb `which` failed at E (/app/node_modules/which/which.js:80:29)
gyp verb `which` failed at /app/node_modules/which/which.js:89:16
gyp verb `which` failed at /app/node_modules/isexe/index.js:42:5
gyp verb `which` failed at /app/node_modules/isexe/mode.js:8:5
gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:192:21) {
gyp verb `which` failed code: 'ENOENT'
gyp verb `which` failed }
gyp verb check python checking for Python executable "python" in the PATH
gyp verb `which` failed Error: not found: python
gyp verb `which` failed at getNotFoundError (/app/node_modules/which/which.js:13:12)
gyp verb `which` failed at F (/app/node_modules/which/which.js:68:19)
gyp verb `which` failed at E (/app/node_modules/which/which.js:80:29)
gyp verb `which` failed at /app/node_modules/which/which.js:89:16
gyp verb `which` failed at /app/node_modules/isexe/index.js:42:5
gyp verb `which` failed at /app/node_modules/isexe/mode.js:8:5
gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:192:21)
gyp verb `which` failed python Error: not found: python
gyp verb `which` failed at getNotFoundError (/app/node_modules/which/which.js:13:12)
gyp verb `which` failed at F (/app/node_modules/which/which.js:68:19)
gyp verb `which` failed at E (/app/node_modules/which/which.js:80:29)
gyp verb `which` failed at /app/node_modules/which/which.js:89:16
gyp verb `which` failed at /app/node_modules/isexe/index.js:42:5
gyp verb `which` failed at /app/node_modules/isexe/mode.js:8:5
gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:192:21) {
gyp verb `which` failed code: 'ENOENT'
gyp verb `which` failed }
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack at PythonFinder.failNoPython (/app/node_modules/node-gyp/lib/configure.js:484:19)
gyp ERR! stack at PythonFinder.<anonymous> (/app/node_modules/node-gyp/lib/configure.js:406:16)
gyp ERR! stack at F (/app/node_modules/which/which.js:68:16)
gyp ERR! stack at E (/app/node_modules/which/which.js:80:29)
gyp ERR! stack at /app/node_modules/which/which.js:89:16
gyp ERR! stack at /app/node_modules/isexe/index.js:42:5
gyp ERR! stack at /app/node_modules/isexe/mode.js:8:5
gyp ERR! stack at FSReqCallback.oncomplete (fs.js:192:21)
gyp ERR! System Linux 5.10.0-1044-oem
gyp ERR! command "/usr/local/bin/node" "/app/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /app/node_modules/node-sass
gyp ERR! node -v v14.17.5
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-08-30T17_31_55_611Z-debug.log
The command '/bin/sh -c npm ci' returned a non-zero code: 1
I'm using:
Docker version 20.10.8, build 3967b7d
docker-compose version 1.29.2, build 5becea4c
Ubuntu 20.04.3 LTS
The text was updated successfully, but these errors were encountered:
josecelano
added a commit
to josecelano/olivia-ai.org
that referenced
this issue
Aug 30, 2021
After running
docker build -t front .
I get the output below.I thought I had a problem with docker accessing Github (sass/node-sass#2773) but it seems that's not the problem. I can download other packages if I remove package-lock.json and try a fresh install. In that case, I get a different error.
I'm using:
The text was updated successfully, but these errors were encountered: