dave08
01/24/2021, 1:16 PMPavel Janečka
01/24/2021, 3:35 PMdave08
01/24/2021, 3:37 PM> Process 'Resolving NPM dependencies using yarn' returns 1
Usage Error: The nearest package directory (.../tmp/fritz2-mvp/build/js) doesn't seem to be part of the project declared in .../tmp.
- If the project directory is right, it might be that you forgot to list fritz2-mvp/build/js as a workspace.
- If it isn't, it's likely because you have a yarn.lock or package.json file there, confusing the project root detection.
Pavel Janečka
01/24/2021, 3:39 PMdave08
01/24/2021, 3:42 PMProcess 'Resolving NPM dependencies using yarn' returns 1Internal Error: Duplicate workspace name mvp: .../tmp/fritz2-mvp/build/js/packages/mvp conflicts with .../tmp/fritz2-mvp/build/js at ie.addWorkspace (/home/david/.yarn/releases/yarn-berry.cjs2352547) at async ie.setupWorkspaces (/home/david/.yarn/releases/yarn-berry.cjs2352236) at async Function.find (/home/david/.yarn/releases/yarn-berry.cjs2349034) at async Ye.execute (/home/david/.yarn/releases/yarn-berry.cjs2107804) at async Ye.validateAndExecute (/home/david/.yarn/releases/yarn-berry.cjs2659490) at async Y.run (/home/david/.yarn/releases/yarn-berry.cjs173854) at async ne.execute (/home/david/.yarn/releases/yarn-berry.cjs257216) at async ne.validateAndExecute (/home/david/.yarn/releases/yarn-berry.cjs2659490) at async Y.run (/home/david/.yarn/releases/yarn-berry.cjs173854) at async Y.runExit (/home/david/.yarn/releases/yarn-berry.cjs174021)
Pavel Janečka
01/24/2021, 3:43 PMPavel Janečka
01/24/2021, 3:44 PMdave08
01/24/2021, 3:45 PMPavel Janečka
01/24/2021, 3:47 PMdave08
01/24/2021, 3:48 PMdave08
01/24/2021, 3:52 PMPavel Janečka
01/24/2021, 3:52 PMgradle publishToMavenLocal
Starting a Gradle Daemon (subsequent builds will be faster)
> Task :buildSrc:compileKotlin
The `kotlin-dsl` plugin applied to project ':buildSrc' enables experimental Kotlin compiler features. For more information see <https://docs.gradle.org/6.8/userguide/kotlin_dsl.html#sec:kotlin-dsl_plugin>
> Task :buildSrc:jar
:jar: No valid plugin descriptors were found in META-INF/gradle-plugins
BUILD SUCCESSFUL in 1m 39s
12 actionable tasks: 12 executed
dave08
01/24/2021, 3:53 PMdave08
01/24/2021, 3:54 PMdave08
01/24/2021, 3:54 PMPavel Janečka
01/24/2021, 3:54 PMclean
before the build, like gradlew clean publishToMavenLocal
Pavel Janečka
01/24/2021, 3:55 PMdave08
01/24/2021, 3:55 PMdave08
01/24/2021, 3:56 PMdave08
01/24/2021, 3:56 PMPavel Janečka
01/24/2021, 3:56 PMPavel Janečka
01/24/2021, 3:56 PMdave08
01/24/2021, 3:58 PMPavel Janečka
01/24/2021, 3:58 PMPavel Janečka
01/24/2021, 3:58 PMdave08
01/24/2021, 3:58 PMPavel Janečka
01/24/2021, 4:00 PMPavel Janečka
01/24/2021, 4:00 PM# Using Ubuntu
curl -sL <https://deb.nodesource.com/setup_15.x> | sudo -E bash -
sudo apt-get install -y nodejs
# Using Debian, as root
curl -sL <https://deb.nodesource.com/setup_15.x> | bash -
apt-get install -y nodejs
dave08
01/24/2021, 4:05 PMdave08
01/24/2021, 4:12 PMProcess 'Resolving NPM dependencies using yarn' returns 1Internal Error: Duplicate workspace name mvp: .../tmp/fritz2-mvp/build/js/packages/mvp
dave08
01/24/2021, 4:13 PMdave08
01/24/2021, 4:14 PMPavel Janečka
01/24/2021, 4:16 PMdave08
01/24/2021, 4:17 PMPavel Janečka
01/24/2021, 4:17 PMyarn --version
in command line it does not work anymore?dave08
01/24/2021, 4:17 PMdave08
01/24/2021, 4:18 PMPavel Janečka
01/24/2021, 4:18 PMPavel Janečka
01/24/2021, 4:19 PMdave08
01/24/2021, 4:21 PMdave08
01/24/2021, 4:22 PMdave08
01/24/2021, 4:22 PMPavel Janečka
01/24/2021, 4:23 PMhttps://fettblog.eu/wp-content/uploads/2020/node-modules-meme.png▾
Pavel Janečka
01/24/2021, 4:23 PMdave08
01/24/2021, 4:28 PM$ ./gradlew clean publishToMavenLocal
> Task :packageJson
Cannot find build/js/packages_imported/kotlin/1.4.20, rebuilding
Cannot find build/js/packages_imported/fritz2-core/0.8.0, rebuilding
Cannot find build/js/packages_imported/kotlinx-coroutines-core/1.4.1, rebuilding
Cannot find build/js/packages_imported/kotlinx-atomicfu/0.14.4, rebuilding
Cannot find build/js/packages_imported/kotlin-test-js-runner/1.4.20, rebuilding
Cannot find build/js/packages_imported/kotlin-test/1.4.20, rebuilding
> Task :kotlinNpmInstall FAILED
error Couldn't find package "dukat@0.5.8-rc.3" required by "mvp@0.1.0" on the "npm" registry.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':kotlinNpmInstall'.
> Process 'Resolving NPM dependencies using yarn' returns 1
yarn install v1.22.4
info No lockfile found.
[1/4] Resolving packages...
info Visit <https://yarnpkg.com/en/docs/cli/install> for documentation about this command.
Pavel Janečka
01/24/2021, 4:31 PMPavel Janečka
01/24/2021, 4:33 PMpackage.json
that is created by the build
{
...
}
create empty folder somewhere, paste this content to package.json
and then run in the same folder npm install
Pavel Janečka
01/24/2021, 4:33 PMdave08
01/24/2021, 4:33 PMPavel Janečka
01/24/2021, 4:34 PMPavel Janečka
01/24/2021, 4:35 PMclean
task then run packageJson
task and then go to fritz2-mvp/build/js/packages/mvp/
Pavel Janečka
01/24/2021, 4:35 PMpre-package.json
filePavel Janečka
01/24/2021, 4:36 PMpackage.json
and then run npm install
in this very folderdave08
01/24/2021, 4:38 PMPavel Janečka
01/24/2021, 4:39 PMdave08
01/24/2021, 4:39 PMPavel Janečka
01/24/2021, 4:39 PMdave08
01/24/2021, 4:39 PMPavel Janečka
01/24/2021, 4:40 PMping <http://registry.npmjs.org|registry.npmjs.org>
does it work?dave08
01/24/2021, 4:43 PMdave08
01/24/2021, 4:43 PMPavel Janečka
01/24/2021, 4:43 PMPavel Janečka
01/24/2021, 4:44 PMdave08
01/24/2021, 4:44 PMdave08
01/24/2021, 4:45 PMPavel Janečka
01/24/2021, 4:45 PMdave08
01/24/2021, 4:45 PMPavel Janečka
01/24/2021, 4:46 PMdave08
01/24/2021, 4:46 PMPavel Janečka
01/24/2021, 4:46 PMPavel Janečka
01/24/2021, 4:47 PMdave08
01/24/2021, 4:59 PMPavel Janečka
01/24/2021, 4:59 PMjessewilson
01/24/2021, 8:29 PMdave08
01/25/2021, 11:47 AM