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
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