之前是通过apt-get命令安装的node,但是在其安装目录中并没有找到src/extensins.h,不知道为何,求大神解释。
另外,通过apt-get命令安装的node和通过源码安装有和区别?
PHP中文网2017-04-17 15:56:06
apt-get is installed directly based on binary, which means apt-get will download the compiled binary file (naturally it cannot find src/extensins.h) and then install it. (However, since the software source is not updated simultaneously, the node version is generally not the latest)
For source code installation, you need to go to the official website or github to download the node source code of any version (including the latest version) and then manually
1, configure configure
2 , make compile
3, make install install