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
請先 登入 以發表留言。