【问题标题】:Ember installations becomes broken after ember-cli-foundation-sass installationember-cli-foundation-sass 安装后 Ember 安装损坏
【发布时间】:2015-12-01 08:30:15
【问题描述】:

我尝试使用 ember-cli-foundation-sass。但是在我添加此扩展程序后,ember 安装会损坏。我在没有安装 ember-cli-foundation-sass 的情况下工作。没有它,ember 服务器可以正常工作。但不适用于此扩展程序。

节点版本:5.1.0 ember-cli 版本:1.13.13

我在 bower.json 文件中看到 jquery 版本:“jquery”:“^1.11.3”,

请查看控制台输出。

igor@hp-laptop ~/projects/extending-todomvc                                                                                 [9:12:38] 
ember install:addon ember-cli-foundation-sass                                                                   ⬡ 5.1.0 [±master]
version: 1.13.13
Could not find watchman, falling back to NodeWatcher for file system events.
Visit http://www.ember-cli.com/user-guide/#watchman for more info.
This command has been deprecated. Please use `ember install <addonName>` instead.
Installed packages for tooling via npm.
installing ember-cli-foundation-sass
  install bower package foundation
Installing browser packages via Bower...
  cached git://github.com/zurb/bower-foundation.git#5.5.3
  cached git://github.com/jquery/jquery.git#2.1.4
  cached git://github.com/jquery/jquery.git#1.11.3
  cached git://github.com/jquery/jquery.git#2.1.4
  cached git://github.com/jquery/jquery.git#2.1.4
  conflict Unable to find suitable version for jquery
    1) jquery >= 1.7.0 < 2.2.0
    2) jquery ^1.11.3
    3) jquery >= 2.1.0
    4) jquery >=1.2
    5) jquery >=1.6
[?] Answer: 2
Installed browser packages via Bower.
  create app/styles/app.scss
  install packages ember-cli-sass, broccoli-clean-css
Installing packages for tooling via npmCan not download file from https://raw.githubusercontent.com/sass/node-sass-binaries/v2.1.1/linux-x64-node-5.1/binding.node
Installing packages for tooling via npm.module.js:340
    throw err;
    ^

Error: Cannot find module '/home/igor/projects/extending-todomvc/node_modules/ember-cli-sass/node_modules/broccoli-sass/node_modules/node-sass/node_modules/pangyp/bin/node-gyp'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:289:25)
    at Function.Module.runMain (module.js:457:10)
    at startup (node.js:138:18)
    at node.js:974:3
Build failed
Installed packages for tooling via npm.
Installed addon package.

igor@hp-laptop ~/projects/extending-todomvc                                                                                 [9:16:22] 
$ ember s                                                                                                      ⬡ 5.1.0 [±master ●●]
`libsass` bindings not found. Try reinstalling `node-sass`?
Error: `libsass` bindings not found. Try reinstalling `node-sass`?
    at getBinding (/home/igor/projects/extending-todomvc/node_modules/ember-cli-sass/node_modules/broccoli-sass/node_modules/node-sass/lib/index.js:22:11)
    at Object.<anonymous> (/home/igor/projects/extending-todomvc/node_modules/ember-cli-sass/node_modules/broccoli-sass/node_modules/node-sass/lib/index.js:188:23)
    at Module._compile (module.js:425:26)
    at Object.Module._extensions..js (module.js:432:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:313:12)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at Object.<anonymous> (/home/igor/projects/extending-todomvc/node_modules/ember-cli-sass/node_modules/broccoli-sass/index.js:5:12)
    at Module._compile (module.js:425:26)

【问题讨论】:

    标签: ember.js


    【解决方案1】:

    我在之前的控制台日志中看到

    无法下载文件 https://raw.githubusercontent.com/sass/node-sass-binaries/v2.1.1/linux-x64-node-5.1/binding.node

    我已将 nodejs 降级到 0.12.8 版,现在可以使用了。

    我看到的是这个错误

    通过 npm 安装工具包...linux-x64-node-0.12 存在; 测试

    问题已解决。谢谢大家!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-04-12
      • 1970-01-01
      • 1970-01-01
      • 2014-12-18
      • 2015-02-08
      • 2015-11-27
      • 1970-01-01
      相关资源
      最近更新 更多