Ubuntu installs node NPM related
apt-get update apt-get install-y python-software-properties Software-properties-common add-a Pt-repository ppa:chris-lea/node.js apt-get update apt-get install Nodejs command after execution, node. JS installs Well, once node. JS has a new release, it can be upgraded directly, without having to compile the installation from scratch, so that node will be able to enter commands directly. In Ubuntu Environment, node is located under the/usr/bin path;
Execute, check whether the installation is correct NODE-V NPM-V executes the installation web framework NPM install-d EXPRESS-G represents the installation into the Node_path Lib, and-d means that the dependency package is also Mount If you do not have-G, the current directory will be installed (a Node_modules folder will be created).
Using Express framework under node, Ejs template engine