我正在尝试使用自耕农和骨干创建示例应用程序,但显示一些错误,任何人都可以帮助我吗?

时间:2021-12-02 11:21:48

i have alerady install following thing in pcs

我有alerady在pcs安装以下东西

  • Node
  • Npm
  • yeoman
  • backbone-generator
  • ruby with saas and compass
  • 红宝石与萨斯和指南针

But still display following error when run grunt command in command prompt.

但在命令提示符下运行grunt命令时仍显示以下错误。

C:\Users\Nirav\Desktop\Backbone\NodeWebkit\TestYeoman>grunt build Running "clean:dist" (clean) task Cleaning .tmp...OK

C:\ Users \ Nirav \ Desktop \ Backbone \ NodeWebkit \ TestYeoman> grunt build运行“clean:dist”(清洁)任务清理.tmp ...确定

Running "coffee:dist" (coffee) task

运行“coffee:dist”(咖啡)任务

Running "coffee:test" (coffee) task

运行“咖啡:测试”(咖啡)任务

Running "createDefaultTemplate" task

运行“createDefaultTemplate”任务

Running "jst:compile" (jst) task

运行“jst:compile”(jst)任务

Destination not written because compiled files were empty.

目的地未写,因为编译的文件是空的。

Running "compass:dist" (compass) task C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:135:in require': cannot load such file -- sass/script/node (LoadError) from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:135:in rescue in require' from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:144:in require' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches/browser_support.rb:1:in' from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in require' from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in require' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches.rb:2:in block in <top (required)>' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches.rb:1:in each' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches.rb:1:in <top (required)>' from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in require' from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in require' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/compass-0.12.2/lib/compass/sass_extensions.rb:9:in ' from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in require' from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in require' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/compass-0.12.2/lib/compass.rb:5:in block in <top (required)>' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/compass-0.12.2/lib/compass.rb:4:in each' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/compass-0.12.2/lib/compass.rb:4:in <top (required)>' from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in require' from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in require' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/compass-0.12.2/bin/compass:20:in block in ' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/compass-0.12.2/bin/compass:8:in fallback_load_path' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/compass-0.12.2/bin/compass:19:in ' from C:/Ruby193/bin/compass:23:in load' from C:/Ruby193/bin/compass:23:in' Warning: ↑ Use --force to continue.

运行“compass:dist”(指南针)任务C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:135:in require':无法加载此类文件 - sass / script / node (LoadError)来自C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:135:救援中的'来自C:/Ruby193/lib/ruby/site_ruby/1.9.1/ rubygems / core_ext / kernel_require.rb:144:in require'from C:/Ruby193/lib/ruby/gems/1.9.1/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches/browser_support.rb:1 :in'from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in require'from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/ core_ext / kernel_require.rb:55:在require'from C:/Ruby193/lib/ruby/gems/1.9.1/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches.rb:2:in in block in '来自C:/Ruby193/lib/ruby/gems/1.9.1/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches.rb:1:在每个'来自C:/ Ruby193 / LIB /红宝石/宝石/ 1.9.1 /宝石/指南针-0.12.2 / LIB /指南针/ sass_extensions / monkey_patches.rb:1:in 'from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in require'from C:/ Ruby193 /lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in要求'来自C:/Ruby193/lib/ruby/gems/1.9.1/gems/compass-0.12.2/lib/ compass / sass_extensions.rb:9:in'from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in require'from C:/ Ruby193 / lib / ruby​​ / site_ruby /1.9.1/rubygems/core_ext/kernel_require.rb:55:in要求'来自C:/Ruby193/lib/ruby/gems/1.9.1/gems/compass-0.12.2/lib/compass.rb:5:在块中的 '来自C:/Ruby193/lib/ruby/gems/1.9.1/gems/compass-0.12.2/lib/compass.rb:4:在每个'来自C:/ Ruby193 /lib/ruby/gems/1.9.1/gems/compass-0.12.2/lib/compass.rb:4:in '来自C:/Ruby193/lib/ruby/site_ruby/1.9.1 /rubygems/core_ext/kernel_require.rb:55:in require'from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in require'from C:/ Ruby193 / li b / ruby​​ / gems / 1.9.1 / gems / compass-0.12.2 / bin / compass:20:in from from C:/Ruby193/lib/ruby/gems/1.9.1/gems/compass-0.12。 2 / bin / compass:8:in fallback_load_path'来自C:/Ruby193/lib/ruby/gems/1.9.1/gems/compass-0.12.2/bin/compass:19:in'from C:/ Ruby193 / bin / compass:23:加载'来自C:/ Ruby193 / bin / compass:23:'警告:↑使用--force继续。 (required)> (required)> (required)> (required)>

Aborted due to warnings.

因警告而中止。

Execution Time (2014-01-09 18:06:03 UTC) loading tasks 2.8s ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 83% compass:dist 556ms ■■■■■■■■■■■■■■■■■■■■■■■■■■ 16% Total 3.4s

执行时间(2014-01-09 18:06:03 UTC)loadings 2.8s■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■83 %compass:dist 556ms■■■■■■■■■■■■■■■■■■■■■■■■■■16%总计3.4s

C:\Users\Nirav\Desktop\Backbone\NodeWebkit\TestYeoman>

Can any one help me to solve following error? this is my first experiment for node yeoman and backbone please help me..

任何人都可以帮我解决以下错误吗?这是我的节点自耕农和骨干的第一个实验请帮助我..

1 个解决方案

#1


2  

I had the same problem and got it running.
There is a version conflict with compass and sass both of which are needed by the framework you installed via the yo command.

我有同样的问题并让它运行。与指南针和sass存在版本冲突,这些都是您通过yo命令安装的框架所需要的。

gem uninstall compass sass

宝石卸载罗盘sass

gem install sass compass

宝石安装sass指南针

Idea stolen from here. Why does "compass watch" say it cannot load sass/script/node (LoadError)?

想法从这里偷来了。为什么“罗盘手表”说它无法加载sass / script / node(LoadError)?

#1


2  

I had the same problem and got it running.
There is a version conflict with compass and sass both of which are needed by the framework you installed via the yo command.

我有同样的问题并让它运行。与指南针和sass存在版本冲突,这些都是您通过yo命令安装的框架所需要的。

gem uninstall compass sass

宝石卸载罗盘sass

gem install sass compass

宝石安装sass指南针

Idea stolen from here. Why does "compass watch" say it cannot load sass/script/node (LoadError)?

想法从这里偷来了。为什么“罗盘手表”说它无法加载sass / script / node(LoadError)?