【发布时间】: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