无法在Windows上启动Square Space开发服务器。

huangapple go评论114阅读模式
英文:

Not able to start square space development server on windows

问题

我正在Windows上使用以下命令设置Square Space本地开发服务器,但遇到了JAVA异常。

我已在Windows上安装了npm。
npm版本为: 6.14.6

使用以下命令安装了Square Space本地开发服务器:

npm install -g @squarespace/server

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

使用此软件需要接受Squarespace开发者使用条款和Oracle二进制代码许可协议。请查看LICENSE.txt。
要阅读文件,请按Enter键:

Squarespace Developer Terms of Use and Oracle Binary Code License Agreement

使用Squarespace Development Server软件(ΓÇ£Dev ServerΓÇ¥)受开发者使用条款的约束,可在http://developers.squarespace.com/developer-terms-of-use/上获取。Java SE Runtime Environment Software与Dev Server捆绑在一起。通过使用Dev Server,您同意接受Java SE平台产品和JavaFX的Oracle二进制代码许可协议,可在http://www.oracle.com/technetwork/java/javase/terms/license/index.html上找到。

您是否接受Squarespace Developer Terms of Use and Oracle Binary Code License Agreement?
请键入'yes'并按Enter键以接受。键入'read'以重新阅读。键入'no'以拒绝:yes
正在执行: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

将build/distributions/local-developer/bin/win-local-developer.bat复制到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

正在执行: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

捆绑兼容的JRE(可能需要一些时间)

> @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 #!

正在执行:node scripts/vetolines.js build/distributions/local-developer/bin/run.bat #!
在build/distributions/local-developer/bin/run.bat中删除以'#!'开头的1行
+ @squarespace/server@1.7.0
在185.088秒内更新了1个包

它已成功安装

在此之后,我进入我的模板目录并运行以下命令:

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

但出现了以下错误:

bilalbaig@bilalbaig-lt MINGW64 /d/folio3-projects/squarespace/template (master)
$ 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

<details>
<summary>英文:</summary>

Am setting up square space local development server on widows using below commands 
but getting JAVA exception 

I have installed npm in windows 
npm version is : **6.14.6**

Installed square-space local development server using command 

**npm install -g @squarespace/server**


``` npm install -g @squarespace/server
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142

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


&gt; @squarespace/server@1.7.0 accept C:\Users\bilalbaig\AppData\Roaming\npm\node_modules\@squarespace\server
&gt; 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 (Γ&#199;&#163;Dev ServerΓ&#199;&#165;) 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 &#39;yes&#39; and press Enter to accept. Type &#39;read&#39; to read again. Type &#39;no&#39; to reject. : yes
Executing: npm run copyrunscript

&gt; @squarespace/server@1.7.0 copyrunscript C:\Users\bilalbaig\AppData\Roaming\npm\node_modules\@squarespace\server
&gt; 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 -&gt; C:\Users\bilalbaig\AppData\Roaming\npm\node_modules\@squarespace\server\build\distributions\local-developer\bin\run.bat

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

Executing: npm run bundle

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

Bundling compatible JRE (This may take a while)

&gt; @squarespace/server@1.7.0 cleanupscript C:\Users\bilalbaig\AppData\Roaming\npm\node_modules\@squarespace\server
&gt; 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 &#39;#!&#39; in build/distributions/local-developer/bin/run.bat
+ @squarespace/server@1.7.0
updated 1 package in 185.088s

It installed successfully

after this I move to my template directory and run command

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

but its giving me this error

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

D:\folio3-projects\squarespace\template&gt;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 &quot;main&quot; 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)

I have tried multiple solutions but not able to fix it

答案1

得分: 5

Had the same issue. It seems like the latest update 1.7.0 from last week broke something so rolling back to a previous version fixed it for me.

npm uninstall -g @squarepace/server

npm install -g @squarespace/server@1.6.2

英文:

Had the same issue. It seems like the latest update 1.7.0 from last week broke something so rolling back to a previous version fixed it for me.

npm uninstall -g @squarepace/server

npm install -g @squarespace/server@1.6.2

huangapple
  • 本文由 发表于 2020年7月30日 02:39:40
  • 转载请务必保留本文链接:https://go.coder-hub.com/63160335.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定