安装node-sass报错,急求,在线等!!!!!!
发布于 10 年前 作者 flftfqwxf 8042 次浏览 最后一次编辑是 8 年前 来自 问答

在阿里云上安装node-sass 但是一直报错,

NODEJS版本为v0.12.2

报错信息如下:

cc1plus: error: unrecognized command line option "-std=c++11" cc1plus: error: unrecognized command line option "-std=c++11" make: *** [Release/obj.target/binding/binding.o] Error 1 make: Leaving directory /alidata/server/www.keruyun.com/node-v0.12.2-linux-x64/hddoc/node_modules/node-sass/build' gyp ERR! build error gyp ERR! stack Error:make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/alidata/server/www.keruyun.com/node-v0.12.2-linux-x64/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.18-274.el5 gyp ERR! command “node” “/alidata/server/www.keruyun.com/node-v0.12.2-linux-x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” "rebuild" gyp ERR! cwd /alidata/server/www.keruyun.com/node-v0.12.2-linux-x64/hddoc/node_modules/node-sass gyp ERR! node -v v0.12.2 gyp ERR! node-gyp -v v1.0.3 gyp ERR! not ok

回到顶部