gpt4 book ai didi

java - 无法在 Windows 上启动方形空间开发服务器

转载 作者:行者123 更新时间:2023-12-02 19:20:17 25 4
gpt4 key购买 nike

我正在使用以下命令在寡妇上设置方形空间本地开发服务器但得到 JAVA 异常

我已经在windows中安装了npmnpm 版本是:6.14.6

使用命令安装 square-space 本地开发服务器

npm install -g @squarespace/server

npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142

> @squarespace/server@1.7.0 preinstall C:\Users\bilalbaig\AppData\Roaming\npm\node_modules\@squarespace\server
> npm run accept && node scripts/execif.js --exists=build npm run copyrunscript


> @squarespace/server@1.7.0 accept C:\Users\bilalbaig\AppData\Roaming\npm\node_modules\@squarespace\server
> node scripts/accept.js LICENSE.txt

Using this software requires accepting the Squarespace Developer Terms of Use and Oracle Binary Code License Agreement. See LICENSE.txt.
To read the file, press Enter. :

Squarespace Developer Terms of Use and Oracle Binary Code License Agreement

Use of the Squarespace Development Server software (ΓÇ£Dev ServerΓÇ¥) is governed by the Developer Terms of Use, available at http://developers.squarespace.com/developer-terms-of-use/. Java SE Runtime Environment Software is bundled with the Dev Server. By using the Dev Server, you agree to the Oracle Binary Code License Agreement for the Java SE Platform Products and JavaFX, available at http://www.oracle.com/technetwork/java/javase/terms/license/index.html.

Do you accept the Squarespace Developer Terms of Use and Oracle Binary Code License Agreement?
Please type 'yes' and press Enter to accept. Type 'read' to read again. Type 'no' to reject. : yes
Executing: npm run copyrunscript

> @squarespace/server@1.7.0 copyrunscript C:\Users\bilalbaig\AppData\Roaming\npm\node_modules\@squarespace\server
> node scripts/copyfile.js build/distributions/local-developer/bin/run.bat darwin:build/distributions/local-developer/bin/osx-local-developer win32:build/distributions/local-developer/bin/win-local-developer.bat linux:build/distributions/local-developer/bin/linux-local-developer build/distributions/local-developer/bin/local-developer

copying build/distributions/local-developer/bin/win-local-developer.bat to build/distributions/local-developer/bin/run.bat
C:\Users\bilalbaig\AppData\Roaming\npm\squarespace-server -> C:\Users\bilalbaig\AppData\Roaming\npm\node_modules\@squarespace\server\build\distributions\local-developer\bin\run.bat

> @squarespace/server@1.7.0 postinstall C:\Users\bilalbaig\AppData\Roaming\npm\node_modules\@squarespace\server
> node scripts/execif.js --exists=build npm run bundle && npm run cleanupscript

Executing: npm run bundle

> @squarespace/server@1.7.0 bundle C:\Users\bilalbaig\AppData\Roaming\npm\node_modules\@squarespace\server
> node scripts/bundlejre.js --accept --clear -tz -j 8u131 -o build/distributions/runtimes/jre

Bundling compatible JRE (This may take a while)

> @squarespace/server@1.7.0 cleanupscript C:\Users\bilalbaig\AppData\Roaming\npm\node_modules\@squarespace\server
> node scripts/execif.js --os=win32 --exists=build node scripts/vetolines.js build/distributions/local-developer/bin/run.bat #!

Executing: node scripts/vetolines.js build/distributions/local-developer/bin/run.bat #!
Removing 1 lines starting with '#!' in build/distributions/local-developer/bin/run.bat
+ @squarespace/server@1.7.0
updated 1 package in 185.088s

安装成功

在此之后我移动到我的模板目录并运行命令

squarespace-server https://conch-flugelhorn-hzkm.squarespace.com/--auth

但它给我这个错误

$ squarespace-server https://conch-flugelhorn-hzkm.squarespace.com/ --auth
off

D:\folio3-projects\squarespace\template>echo off
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/C:/Users/bilalbaig/AppData/Roaming/npm/node_modules/@squarespace/server/build/distributions/local-developer/lib/logback-classic-1.1.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/C:/Users/bilalbaig/AppData/Roaming/npm/node_modules/@squarespace/server/build/distributions/local-developer/lib/logback-classic-1.2.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
23:33:36,707 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
23:33:36,707 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
23:33:36,708 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [jar:file:/C:/Users/bilalbaig/AppData/Roaming/npm/node_modules/@squarespace/server/build/distributions/local-developer/lib/local-developer.jar!/logback.xml]
23:33:36,709 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs multiple times on the classpath.
23:33:36,710 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [jar:file:/C:/Users/bilalbaig/AppData/Roaming/npm/node_modules/@squarespace/server/build/distributions/local-developer/lib/local-developer.jar!/logback.xml]
23:33:36,710 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [jar:file:/C:/Users/bilalbaig/AppData/Roaming/npm/node_modules/@squarespace/server/build/distributions/local-developer/lib/src.jar!/logback.xml]
23:33:36,738 |-INFO in ch.qos.logback.core.joran.spi.ConfigurationWatchList@c038203 - URL [jar:file:/C:/Users/bilalbaig/AppData/Roaming/npm/node_modules/@squarespace/server/build/distributions/local-developer/lib/local-developer.jar!/logback.xml] is not of type file
23:33:36,827 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
23:33:36,842 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
23:33:36,854 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [STDOUT]
23:33:36,899 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
23:33:36,962 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [__RequestLogger] to INFO
23:33:36,962 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [com.squarespace.developer.autoreload.ReloadFileWatcher] to INFO
23:33:36,962 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [io.dropwizard.server.ServerFactory] to INFO
23:33:36,962 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to ERROR
23:33:36,962 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [STDOUT] to Logger[ROOT]
23:33:36,963 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
23:33:36,964 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@cc285f4 - Registering current configuration as safe fallback point

SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
Exception in thread "main" java.lang.NoSuchMethodError: io.dropwizard.server.SimpleServerFactory.setRequestLogFactory(Lio/dropwizard/request/logging/RequestLogFactory;)V
at com.squarespace.developer.DevelopmentServer.configureLogging(DevelopmentServer.java:117)
at com.squarespace.developer.DevelopmentServer.run(DevelopmentServer.java:73)
at io.dropwizard.cli.EnvironmentCommand.run(EnvironmentCommand.java:40)
at io.dropwizard.cli.ConfiguredCommand.run(ConfiguredCommand.java:77)
at io.dropwizard.cli.Cli.run(Cli.java:70)
at io.dropwizard.Application.run(Application.java:80)
at com.squarespace.developer.DevelopmentServer.main(DevelopmentServer.java:61)

我尝试了多种解决方案,但无法修复它

最佳答案

遇到了同样的问题。似乎上周的最新更新 1.7.0 破坏了一些东西,所以回滚到以前的版本为我修复了它。

npm uninstall -g @squarepace/server

npm install -g @squarespace/server@1.6.2

关于java - 无法在 Windows 上启动方形空间开发服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63160335/

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