gpt4 book ai didi

kotlin-js - 构建 kotlin/js 项目 : error package. json 时出现异常:名称包含非法字符

转载 作者:行者123 更新时间:2023-12-04 12:14:16 26 4
gpt4 key购买 nike

尝试构建 kotlin/js 项目并获得以下异常:

error package.json: Name contains illegal characters

该项目在这里:

https://github.com/darran-kelinske-fivestars/cordova-alternative-pattern/tree/kotlin_multiplatform/js

完整输出:
3:05:37 PM: Executing task 'build'...

Executing tasks: [build] in project /rom/source/fivestars/CordovaAlternativePattern/js


> Configure project :SharedCode
Kotlin Multiplatform Projects are an experimental feature.

> Task :SharedCode:jsPackageJson
> Task :js:packageJson
> Task :js:testPackageJson
> Task :kotlinNodeJsSetup SKIPPED

> Task :kotlinNpmInstall FAILED
error package.json: Name contains illegal characters

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.21.1
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.


* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 885ms
4 actionable tasks: 4 executed
3:05:38 PM: Task execution finished 'build'.

最佳答案

问题出在我的 rootProject.name settings.gradle 中的定义

我不得不改变
rootProject.name='Cordova Alternative Pattern'

rootProject.name='CordovaAlternativePattern'

关于kotlin-js - 构建 kotlin/js 项目 : error package. json 时出现异常:名称包含非法字符,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60534770/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com