flant / ovpn-admin

Simple web UI to manage OpenVPN users.
Apache License 2.0
1.39k stars 261 forks source link

build from docker-compose failed #233

Closed RWDai closed 1 year ago

RWDai commented 1 year ago

run:

sudo ./start.sh

error:

[ovpn-admin frontend-builder 3/3] RUN cd /app && npm install && npm run build:
12.66 npm WARN old lockfile
12.67 npm WARN old lockfile The package-lock.json file was created with an old version of npm,
12.67 npm WARN old lockfile so supplemental metadata must be fetched from the registry.
12.67 npm WARN old lockfile
12.67 npm WARN old lockfile This is a one-time fix-up, please be patient...
12.67 npm WARN old lockfile
344.8 npm WARN deprecated har-validator@5.1.5: this library is no longer supported
346.8 npm WARN deprecated @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs
355.4 npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
357.8 npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
363.8 npm WARN deprecated axios@0.27.1: Formdata complete broken, incorrect build size
368.3 npm WARN deprecated popper.js@1.16.1: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
445.9 npm notice
445.9 npm notice New major version of npm available! 8.19.2 -> 9.8.1
445.9 npm notice Changelog: <https://github.com/npm/cli/releases/tag/v9.8.1>
445.9 npm notice Run `npm install -g npm@9.8.1` to update!
445.9 npm notice
445.9 npm ERR! code 1
445.9 npm ERR! path /app/node_modules/node-sass
446.0 npm ERR! command failed
446.0 npm ERR! command sh -c -- node scripts/build.js
446.0 npm ERR! Building: /usr/local/bin/node /app/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
446.0 npm ERR! gyp info it worked if it ends with ok
446.0 npm ERR! gyp verb cli [
446.0 npm ERR! gyp verb cli   '/usr/local/bin/node',
446.0 npm ERR! gyp verb cli   '/app/node_modules/node-gyp/bin/node-gyp.js',
446.0 npm ERR! gyp verb cli   'rebuild',
446.0 npm ERR! gyp verb cli   '--verbose',
446.0 npm ERR! gyp verb cli   '--libsass_ext=',
446.0 npm ERR! gyp verb cli   '--libsass_cflags=',
446.0 npm ERR! gyp verb cli   '--libsass_ldflags=',
446.0 npm ERR! gyp verb cli   '--libsass_library='
446.0 npm ERR! gyp verb cli ]
446.0 npm ERR! gyp info using node-gyp@8.4.1
446.0 npm ERR! gyp info using node@16.18.1 | linux | arm64
446.0 npm ERR! gyp verb command rebuild []
446.0 npm ERR! gyp verb command clean []
446.0 npm ERR! gyp verb clean removing "build" directory
446.0 npm ERR! gyp verb command configure []
446.0 npm ERR! gyp verb find Python Python is not set from command line or npm configuration
446.0 npm ERR! gyp verb find Python Python is not set from environment variable PYTHON
446.0 npm ERR! gyp verb find Python checking if "python3" can be used
446.0 npm ERR! gyp verb find Python - executing "python3" to get executable path
446.0 npm ERR! gyp verb find Python - "python3" is not in PATH or produced an error
446.0 npm ERR! gyp verb find Python checking if "python" can be used
446.0 npm ERR! gyp verb find Python - executing "python" to get executable path
446.0 npm ERR! gyp verb find Python - "python" is not in PATH or produced an error
446.0 npm ERR! gyp ERR! find Python
446.0 npm ERR! gyp ERR! find Python Python is not set from command line or npm configuration
446.0 npm ERR! gyp ERR! find Python Python is not set from environment variable PYTHON
446.0 npm ERR! gyp ERR! find Python checking if "python3" can be used
446.0 npm ERR! gyp ERR! find Python - "python3" is not in PATH or produced an error
446.0 npm ERR! gyp ERR! find Python checking if "python" can be used
446.0 npm ERR! gyp ERR! find Python - "python" is not in PATH or produced an error
446.0 npm ERR! gyp ERR! find Python
446.0 npm ERR! gyp ERR! find Python **********************************************************
446.0 npm ERR! gyp ERR! find Python You need to install the latest version of Python.
446.0 npm ERR! gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
446.0 npm ERR! gyp ERR! find Python you can try one of the following options:
446.0 npm ERR! gyp ERR! find Python - Use the switch --python="/path/to/pythonexecutable"
446.0 npm ERR! gyp ERR! find Python   (accepted by both node-gyp and npm)
446.0 npm ERR! gyp ERR! find Python - Set the environment variable PYTHON
446.0 npm ERR! gyp ERR! find Python - Set the npm configuration variable python:
446.0 npm ERR! gyp ERR! find Python   npm config set python "/path/to/pythonexecutable"
446.0 npm ERR! gyp ERR! find Python For more information consult the documentation at:
446.0 npm ERR! gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
446.0 npm ERR! gyp ERR! find Python **********************************************************
446.0 npm ERR! gyp ERR! find Python
446.0 npm ERR! gyp ERR! configure error
446.0 npm ERR! gyp ERR! stack Error: Could not find any Python installation to use
446.0 npm ERR! gyp ERR! stack     at PythonFinder.fail (/app/node_modules/node-gyp/lib/find-python.js:330:47)
446.0 npm ERR! gyp ERR! stack     at PythonFinder.runChecks (/app/node_modules/node-gyp/lib/find-python.js:159:21)
446.0 npm ERR! gyp ERR! stack     at PythonFinder.<anonymous> (/app/node_modules/node-gyp/lib/find-python.js:202:16)
446.0 npm ERR! gyp ERR! stack     at PythonFinder.execFileCallback (/app/node_modules/node-gyp/lib/find-python.js:294:16)
446.0 npm ERR! gyp ERR! stack     at exithandler (node:child_process:410:5)
446.0 npm ERR! gyp ERR! stack     at ChildProcess.errorhandler (node:child_process:422:5)
446.0 npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:513:28)
446.0 npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
446.0 npm ERR! gyp ERR! stack     at onErrorNT (node:internal/child_process:485:16)
446.0 npm ERR! gyp ERR! stack     at processTicksAndRejections (node:internal/process/task_queues:83:21)
446.0 npm ERR! gyp ERR! System Linux 6.1.30-sunxi64
446.0 npm ERR! 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="
446.0 npm ERR! gyp ERR! cwd /app/node_modules/node-sass
446.0 npm ERR! gyp ERR! node -v v16.18.1
446.0 npm ERR! gyp ERR! node-gyp -v v8.4.1
446.0 npm ERR! gyp ERR! not ok
446.0 npm ERR! Build failed with error code: 1
446.0
446.0 npm ERR! A complete log of this run can be found in:

and env:

docker: Docker version 24.0.5, build ced0996 OS: Linux pine64 6.1.30-sunxi64 #1 SMP Wed May 24 16:32:53 UTC 2023 aarch64 GNU/Linux

RWDai commented 1 year ago

same as #127 ,so i will close this issue