错误:找不到`libsass`绑定 [英] Error: The `libsass` binding was not found

查看:56
本文介绍了错误:找不到`libsass`绑定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用node-sass-middleware运行express应用会在ubuntu上给我这个错误:

Running express app using node-sass-middleware give me this error on ubuntu:

0 info it worked if it ends with ok
1 verbose cli [ '/home/mohamed/.nvm/versions/node/v0.12.7/bin/node',
1 verbose cli   '/home/mohamed/.nvm/versions/node/v0.12.7/bin/npm',
1 verbose cli   'start' ]
2 info using npm@2.11.3
3 info using node@v0.12.7
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info prestart arabicoders@3.3.1
6 info start arabicoders@3.3.1
7 verbose unsafe-perm in lifecycle true
8 info arabicoders@3.3.1 Failed to exec start script
9 verbose stack Error: arabicoders@3.3.1 start: `node app.js`
9 verbose stack Exit status 1
9 verbose stack     at EventEmitter.<anonymous> (/home/mohamed/.nvm/versions/node/v0.12.7/lib/node_modules/npm/lib/utils/lifecycle.js:213:16)
9 verbose stack     at EventEmitter.emit (events.js:110:17)
9 verbose stack     at ChildProcess.<anonymous> (/home/mohamed/.nvm/versions/node/v0.12.7/lib/node_modules/npm/lib/utils/spawn.js:24:14)
9 verbose stack     at ChildProcess.emit (events.js:110:17)
9 verbose stack     at maybeClose (child_process.js:1015:16)
9 verbose stack     at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
10 verbose pkgid arabicoders@3.3.1
11 verbose cwd /home/mohamed/projects/arabicoders
12 error Linux 3.19.0-28-generic
13 error argv "/home/mohamed/.nvm/versions/node/v0.12.7/bin/node" "/home/mohamed/.nvm/versions/node/v0.12.7/bin/npm" "start"
14 error node v0.12.7
15 error npm  v2.11.3
16 error code ELIFECYCLE
17 error arabicoders@3.3.1 start: `node app.js`
17 error Exit status 1
18 error Failed at the arabicoders@3.3.1 start script 'node app.js'.
18 error This is most likely a problem with the arabicoders package,
18 error not with npm itself.
18 error Tell the author that this fails on your system:
18 error     node app.js
18 error You can get their info via:
18 error     npm owner ls arabicoders
18 error There is likely additional logging output above.
19 verbose exit [ 1, true ]

推荐答案

好像您没有安装 sass node-sass .

尝试:

sudo su -c "gem install sass"

npm install -g node-sass

这篇关于错误:找不到`libsass`绑定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆