Windows, so it is installed on the centOS virtual machine, but also due to version issues. First, the latest version of the installed linux binary version of node, and then npminstalpomelo-g, reported a bunch of errors about null pointers, v8 errors, in short, an error occurred while compiling c ++, so the node source code was downloaded to compile (download-& gt; unzip-& gt ;. /configure-& gt; make
Windows, so it is installed on the centOS virtual machine, but also due to version issues.
First, the latest node version of the linux binary version is installed, and then npm instal pomelo-g reports a bunch of errors about null pointers and v8 errors,
In short, an error occurred while compiling c ++. as a result, the node source code was downloaded to compile (download-> decompress->./configure-> make install)
An error occurred during make. it seems that the error is similar to the error of installing pomelo. we can see a warning saying that the C ++ compiler version is too old, at least 4.8,
So I went to upgrade C ++ compiler)
Make C ++ compiler really takes a long time...
After the upgrade is successful, continue to compile nodejs and report No module named bz2
There are also ways to install bz2 on the Internet, and then reinstall python
Then compile nodejs. Then make install and install. Run "/etc/profile" on the source, and then "node-v" and "npm-v" to check whether the environment is OK.
Then npm install pomelo-g. If no permission is reported, add sudo
I failed to install pomelo for the first time. it took a long time to install some dependent packages. I don't know if it was the network problem. then I started a vpn and re-installed it. everything went fine.