Error message as below:

../../nan/nan.h:41:3: error: #error This version of node/NAN/v8 requires a C++11 compiler

[Solution]

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-5 g++-5
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 80 --slave /usr/bin/g++ g++ /usr/bin/g++-5
sudo update-alternatives --config gcc

[Reference]

https://github.com/node-inspector/node-inspector/issues/776

創作者介紹
創作者 I'm not 梵谷 的頭像
ps030010

I'm not 梵谷

ps030010 發表在 痞客邦 留言(0) 人氣( 2 )