Skip to content
This repository has been archived by the owner on Dec 20, 2022. It is now read-only.

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

Open
FalcoGer opened this issue Nov 21, 2019 · 0 comments
Open

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

FalcoGer opened this issue Nov 21, 2019 · 0 comments

Comments

@FalcoGer
Copy link

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 [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[4/5] Linking dependencies...
warning " > [email protected]" has unmet peer dependency "request@^2.34".
warning "request-promise-native > [email protected]" has unmet peer dependency "request@^2.34".
warning " > [email protected]" has incorrect peer dependency "winston@^2 <= 3.0.0-rc9 || ^3".
warning " > [email protected]" has incorrect peer dependency "[email protected] || 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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant