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

标签 java npm squarespace

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

我已经在windows中安装了npm npm 版本是: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/

相关文章:

java - 扩展 Serialized 接口(interface)有什么影响

java - 确保字段从构造函数中初始化

java - 从MapReduce程序读取xls文件

json - NPM 安装失败并出现神秘的 "Unexpected token in JSON"错误

html - 需要帮助更改索引页面描述文本字体大小,以便我可以将其用作标题和子标题?

jquery - 根据根背景图像或颜色反转文本颜色

java - tomcat的config文件夹中的属性文件放在哪里

javascript - FullCalendar v4 动态设置日历的高度

npm - pkcs11js@1.0.19 从 NPM v0.2.0 安装 Hyperledger Caliper CLI 脚本失败

html - 页面部分中心需要 Logo ,不包括方形空间中的左侧栏