docker-web-gui
docker-web-gui copied to clipboard
Cannot start the app
Environment
MacOS Monterey 12.6 node v16.0.0 npm 7.10.0
Cannot start the app
$ node app.js

Error log
npm ERR! gyp ERR! node -v v16.0.0
npm ERR! gyp ERR! node-gyp -v v7.1.2
npm ERR! gyp ERR! not ok
npm ERR! node-pre-gyp ERR! build error
npm ERR! node-pre-gyp ERR! stack Error: Failed to execute '/Users/izalul/.nvm/versions/node/v16.0.0/bin/node /Users/izalul/.nvm/versions/node/v16.0.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/izalul/docker-dev-ui/backend/node_modules/sqlite3/lib/binding/node-v93-darwin-x64/node_sqlite3.node --module_name=node_sqlite3 --module_path=/Users/izalul/docker-dev-ui/backend/node_modules/sqlite3/lib/binding/node-v93-darwin-x64 --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v93' (1)
npm ERR! node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/Users/izalul/docker-dev-ui/backend/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
npm ERR! node-pre-gyp ERR! stack at ChildProcess.emit (node:events:365:28)
npm ERR! node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1067:16)
npm ERR! node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
npm ERR! node-pre-gyp ERR! System Darwin 21.6.0
npm ERR! node-pre-gyp ERR! command "/Users/izalul/.nvm/versions/node/v16.0.0/bin/node" "/Users/izalul/docker-dev-ui/backend/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
npm ERR! node-pre-gyp ERR! cwd /Users/izalul/docker-dev-ui/backend/node_modules/sqlite3
npm ERR! node-pre-gyp ERR! node -v v16.0.0
npm ERR! node-pre-gyp ERR! node-pre-gyp -v v0.11.0
npm ERR! node-pre-gyp ERR! not ok
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/izalul/.npm/_logs/2022-11-29T07_16_08_915Z-debug.log
at ChildProcess.exithandler (node:child_process:326:12)
at ChildProcess.emit (node:events:365:28)
at maybeClose (node:internal/child_process:1067:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5) {
killed: false,
code: 1,
signal: null,
cmd: 'cd /Users/izalul/docker-dev-ui/backend && npm install'
}
It seems like to be an issue with node-gyp
build. Make sure to have xcode command line tool or re-install it using this command and try again.
xcode-select --install
I was able to solve it just by setting the URL for python -> with: npm config set python <your python3 binary>
@northboys Hi! This has been fixed along with the permission issues. Please pull latest changes from master
. Then use docker-compose build
and docker-compose up
to run the application.
If you are still facing this issue please re-open it.