-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linux 2.6.32-358.el6.x86_64 npm安装失败 #30
Comments
我也是 |
libsass要求gcc 4.6+,得先升级系统。。。 |
@coooold @BaiduFE 升级到GCC 4.8 之后依然安装不上...... ➜ ~ sudo npm install -g fis-parser-sass
Downloading http://fisstatic.duapp.com/addons/fis-sass/3.1.0/linux-x64/0.12.0/binding.node ... npm ERR! [email protected] install: npm ERR! Please include the following file with any support request: |
不用用 sudo 调用 npm,会出现一些问题。 |
@xiangshouding @coooold 不用sudo 也是有问题的 Downloading http://fisstatic.duapp.com/addons/fis-sass/3.1.0/linux-x64/0.12.0/binding.node ... npm ERR! [email protected] install: npm ERR! Please include the following file with any support request: |
Downloading http://fisstatic.duapp.com/addons/fis-sass/3.1.0/linux-x64/0.12.0/binding.node ... |
https://github.com/xiangshouding/fis-parser-sass-by-ruby 我实现了一个调用外部命令处理 sass 文件的插件,不过提前得安装好依赖,应该不会出现安装不上的问题,大家实在没办法可以试试。 |
可以试试这个 https://www.npmjs.com/package/fis-parser-sass2 亲测有效(但还是有些小坑)
|
fis-parser-sass2 还是有些小坑,开启 watch + md5 时会出现 map.json 中找不到对应的 sass 。 能用 fis-parser-sass 还是用 fis-parse-sass |
@nimojs fis-parser-sass 之所以基于 fis-sass 是因为当时编译机上安装不上,所以自己包装了下 lib-sass 库,我觉得 fis-parser-sass2 我觉得只要处理好两个事情应该就能用了:
关于以上两个功能,可以参考 fis-parser-sass |
如题在Linux 环境上安装失败
我先贴个log在上面,看看你能不能帮忙看下,我初步看是出错在 fis-sass的build.js文件中 .
看看能不能帮忙看看
sudo npm install -g fis-parser-sass
[email protected] install /usr/lib/node_modules/fis-parser-sass/node_modules/fis-sass
node build.js
Downloading http://fisstatic.duapp.com/addons/fis-sass/3.1.0/linux-x64/0.12.0/binding.node ...
Received 513K...
Received 1052K...
Received 1564K...
Received 1753K total.
Test failed!
child_process: customFds option is deprecated, use stdio instead.
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/0.12.2"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/lib/node_modules/fis-parser-sass/node_modules/fis-sass/.node-gyp"
make: Entering directory
/usr/lib/node_modules/fis-parser-sass/node_modules/fis-sass/build' CXX(target) Release/obj.target/binding/src/binding.o ../src/binding.cpp: In function ‘Sass_Import** sass_importer2(const char*, const char*, void*)’: ../src/binding.cpp:27: 警告:实参为 NULL,需要非 NULL 值(实参 1) ../src/binding.cpp:28: 警告:实参为 NULL,需要非 NULL 值(实参 1) ../src/binding.cpp: In function ‘void GetStats(v8::Handle<v8::Object>, Sass_Context*)’: ../src/binding.cpp:95: 错误:‘nullptr’在此作用域中尚未声明 make: *** [Release/obj.target/binding/src/binding.o] 错误 1 make: Leaving directory
/usr/lib/node_modules/fis-parser-sass/node_modules/fis-sass/build'gyp ERR! build error
gyp ERR! stack Error:
make
failed with exit code: 2gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:269:23)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Linux 2.6.32-358.el6.x86_64
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/lib/node_modules/fis-parser-sass/node_modules/fis-sass
gyp ERR! node -v v0.12.2
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok
Build failed
npm ERR! Linux 2.6.32-358.el6.x86_64
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "-g" "fis-parser-sass"
npm ERR! node v0.12.2
npm ERR! npm v2.7.4
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install:
node build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node build.js'.
npm ERR! This is most likely a problem with the fis-sass package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node build.js
npm ERR! You can get their info via:
npm ERR! npm owner ls fis-sass
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/rong/www/trunk/npm-debug.log
The text was updated successfully, but these errors were encountered: