Java 无法在windows上启动square space development server

Java 无法在windows上启动square space development server,java,npm,squarespace,Java,Npm,Squarespace,我使用以下命令在widows上设置square space本地开发服务器 但是得到JAVA异常 我已经在windows中安装了npm npm版本为:6.14.6 使用命令安装了square space本地开发服务器 npm安装-g@squarespace/server 它安装成功了 在此之后,我移动到我的模板目录并运行命令 squarespace服务器https://conch-flugelhorn-hzkm.squarespace.com/ -认证 但它给了我这个错误 $ squarespac

我使用以下命令在widows上设置square space本地开发服务器 但是得到JAVA异常

我已经在windows中安装了npm npm版本为:6.14.6

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

npm安装-g@squarespace/server

它安装成功了

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

squarespace服务器https://conch-flugelhorn-hzkm.squarespace.com/ -认证

但它给了我这个错误

$ 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卸载-g@squarepace/server


npm安装-g@squarespace/server@1.6.2

在谷歌搜索了很多次之后,这个解决方案对我有效!谢谢快速简便的绷带。我希望他们在下一次更新中修复它。
$ 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)