SouthbankSoftware / dbkoda

State of the art MongoDB IDE
https://www.dbkoda.com
GNU Affero General Public License v3.0
870 stars 42 forks source link

yarn link:dev fails with "can't cd into ../dbkoda-ui/dist/ui" #60

Open FalcoGer opened 4 years ago

FalcoGer commented 4 years ago

I have cloned dbkoda, dbkoda-controller and dbkoda-ui into the same directory afterwards I installed yarn, as it was needed, according to the instructions here

Then I ran yarn link:dev as described in the README, but it failed.

> yarn dev:link
yarn run v1.19.1
$ yarn run dev:link:controller && yarn run dev:link:controller:ui && yarn run dev:link:uiDefinitions
$ rimraf assets/controller && ln -s "$(cd ../dbkoda-controller && pwd)" assets/controller && (cd assets/controller && (yarn unlink > /dev/null 2>&1; exit 0) && yarn link) && yarn link "@southbanksoftware/dbkoda-controller"
success Registered "@southbanksoftware/dbkoda-controller".
info You can now run `yarn link "@southbanksoftware/dbkoda-controller"` in the projects where you want to use this package and it will be used instead.
success Using linked package for "@southbanksoftware/dbkoda-controller".
$ cd ../dbkoda-controller && rimraf public/ui && ln -s "$(cd ../dbkoda-ui/dist/ui && pwd)" public/ui
/bin/sh: 1: cd: can't cd to ../dbkoda-ui/dist/ui
ln: failed to create symbolic link 'public/ui' -> '': No such file or directory
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

I continued on with the installation anyway, and I got some missing/invalid dependency warnings for example:

> yarn install
yarn install v1.19.1
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
info fsevents@1.1.3: The platform "linux" is incompatible with this module.
info "fsevents@1.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
info 7zip-bin-mac@1.0.1: The platform "linux" is incompatible with this module.
info "7zip-bin-mac@1.0.1" is an optional dependency and failed compatibility check. Excluding it from installation.
info 7zip-bin-win@2.2.0: The platform "linux" is incompatible with this module.
info "7zip-bin-win@2.2.0" is an optional dependency and failed compatibility check. Excluding it from installation.
info app-builder-bin-mac@1.5.0: The platform "linux" is incompatible with this module.
info "app-builder-bin-mac@1.5.0" is an optional dependency and failed compatibility check. Excluding it from installation.
info app-builder-bin-win@1.5.0: The platform "linux" is incompatible with this module.
info "app-builder-bin-win@1.5.0" is an optional dependency and failed compatibility check. Excluding it from installation.
[4/5] Linking dependencies...
warning " > request-promise-native@1.0.5" has unmet peer dependency "request@^2.34".
warning "request-promise-native > request-promise-core@1.1.1" has unmet peer dependency "request@^2.34".
warning " > winston-daily-rotate-file@3.1.3" has incorrect peer dependency "winston@^2 <= 3.0.0-rc9 || ^3".
warning " > jest-html-reporter@0.1.2" has incorrect peer dependency "jest@19.x || 20.x".
[5/5] Building fresh packages...
$ yarn run cbuild
yarn run v1.19.1
$ yarn run clean && yarn run build
$ rimraf lib
$ babel --ignore tests -d lib/ src/
src/app.js -> lib/app.js
src/components/drill.js -> lib/components/drill.js
src/components/performance.js -> lib/components/performance.js
src/helpers/identifyWorkingMode.js -> lib/helpers/identifyWorkingMode.js
src/helpers/index.js -> lib/helpers/index.js
src/helpers/invokeApi.js -> lib/helpers/invokeApi.js
src/helpers/pkginfo.js -> lib/helpers/pkginfo.js
src/helpers/raygun.js -> lib/helpers/raygun.js
src/helpers/raygun.offline.js -> lib/helpers/raygun.offline.js
src/helpers/winston.js -> lib/helpers/winston.js
src/index.js -> lib/index.js
src/touchbar.js -> lib/touchbar.js
Done in 5.14s.
Done in 42.72s.

or

> yarn run pack
yarn run v1.19.1
$ yarn run cbuild && ELECTRON_BUILDER_ALLOW_UNRESOLVED_DEPENDENCIES=true build --dir --config.extraMetadata.mode=prod
$ yarn run clean && yarn run build
$ rimraf lib
$ babel --ignore tests -d lib/ src/
src/app.js -> lib/app.js
src/components/drill.js -> lib/components/drill.js
src/components/performance.js -> lib/components/performance.js
src/helpers/identifyWorkingMode.js -> lib/helpers/identifyWorkingMode.js
src/helpers/index.js -> lib/helpers/index.js
src/helpers/invokeApi.js -> lib/helpers/invokeApi.js
src/helpers/pkginfo.js -> lib/helpers/pkginfo.js
src/helpers/raygun.js -> lib/helpers/raygun.js
src/helpers/raygun.offline.js -> lib/helpers/raygun.offline.js
src/helpers/winston.js -> lib/helpers/winston.js
src/index.js -> lib/index.js
src/touchbar.js -> lib/touchbar.js
  • electron-builder version=20.2.0
  • loaded configuration file=/home/paul/bin/dbkoda/electron-builder.json
  • writing effective config file=dist/electron-builder.yaml
  • Unresolved node modules: webpack
  • rebuilding native production dependencies platform=linux arch=x64
  • rebuilding native dependency name=bcrypt
  • rebuilding native dependency name=node-pty
  • rebuilding native dependency name=uws
  • rebuilding native dependency name=ws
  • rebuilding native dependency name=ws
  • packaging       platform=linux arch=x64 electron=1.8.6 appOutDir=dist/linux-unpacked
Downloading tmp-30012-1-SHASUMS256.txt-1.8.6
[============================================>] 100.0% of 5.74 kB (5.74 kB/s)
Done in 94.45s.

Then in the end I got a bunch of exceptions.

> yarn dist
yarn run v1.19.1
$ ELECTRON_BUILDER_ALLOW_UNRESOLVED_DEPENDENCIES=true yarn run dist:basic --publish never
$ yarn run cbuild && build --config.extraMetadata.mode=prod --publish never
$ yarn run clean && yarn run build
$ rimraf lib
$ babel --ignore tests -d lib/ src/
src/app.js -> lib/app.js
src/components/drill.js -> lib/components/drill.js
src/components/performance.js -> lib/components/performance.js
src/helpers/identifyWorkingMode.js -> lib/helpers/identifyWorkingMode.js
src/helpers/index.js -> lib/helpers/index.js
src/helpers/invokeApi.js -> lib/helpers/invokeApi.js
src/helpers/pkginfo.js -> lib/helpers/pkginfo.js
src/helpers/raygun.js -> lib/helpers/raygun.js
src/helpers/raygun.offline.js -> lib/helpers/raygun.offline.js
src/helpers/winston.js -> lib/helpers/winston.js
src/index.js -> lib/index.js
src/touchbar.js -> lib/touchbar.js
  • electron-builder version=20.2.0
  • loaded configuration file=/home/paul/bin/dbkoda/electron-builder.json
  • writing effective config file=dist/electron-builder.yaml
  • Unresolved node modules: webpack
  • rebuilding native production dependencies platform=linux arch=x64
  • rebuilding native dependency name=bcrypt
  • rebuilding native dependency name=node-pty
  • rebuilding native dependency name=uws
  • rebuilding native dependency name=ws
  • rebuilding native dependency name=ws
  • packaging       platform=linux arch=x64 electron=1.8.6 appOutDir=dist/linux-unpacked
  • building        target=AppImage arch=x64 file=dist/@southbanksoftware/dbkoda-1.1.0-x86_64.AppImage
  • downloading               path=/home/paul/.cache/electron-builder/appimage/appimage-9.0.7 url=https://github.com/electron-userland/electron-builder-binaries/releases/download/appimage-9.0.7/appimage-9.0.7.7z
  ⨯ exit status 1
output: WARNING: zsyncmake is missing, please install it if you want to use binary delta updates
Using architecture x86_64
Deleting pre-existing .DirIcon
Creating .DirIcon symlink based on information from desktop file
Generating squashfs...
Could not create destination file: No such file or directory
Embedding ELF...
Not able to open the AppImage for writing, aborting
/home/paul/bin/dbkoda/dist/__appImage-x64 should be packaged as /home/paul/bin/dbkoda/dist/@southbanksoftware/dbkoda-1.1.0-x86_64.AppImage