Node.js is a new language in Linux, and Node.js express is some default template. Of course, there may be more than one template for express. This article will give two examples to introduce how to install Node.js Express under Linux.
First, install
all first installed by express-generator, or when you create a project, you are prompted to express command not found
npm install -g express- Generator #First need to install express-generator
npm install -g express
express -V #Verify if the installation is successful
Second, create project
$ Express myfirstexpress # express default template uses jade, if you need ejs template support, plus -e option, ie express -e myfirstexpress
$ cd myfirstexpress
$ ls
App.js bin package.json public routes views #Project directory structure
Third, run the project
$ npm install # Need to wait for a while, because you need to get a lot of library files
$ npm start
4. Access the first express project
Enter http://127.0.0.1:3000
in the browser. How is this in Linux? Introduction to the installation of Node.js Express, more installation of express templates, or with this above Both are similar, and users can make their own decisions.
The touch command in Linux system is to update the directory or file to execute the time and date co
Usually Ubuntu Unity Dash has its own shutdown and restart options, but many friend
If you need regular statistics due to work needs or personal preferences, you can install some stati
In the big family of Linux systems, Android is undoubtedly the most dazzling one. A
How to use NTP to synchronize Linux system time
Linux beginners need to learn the summary of commands
Example of isosize instruction operation in Linux
Linux does not extract compressed files, how to directly view a file size
Linux steps to monitor database systems with Zabbix
How Linux implements the transmission of UDP broadcast messages
Linux system how to use the crond command
How to change the position of the close/maximize/minimize button in the Ubuntu program window
How to install and use Glances in Linux
Linux error when reporting a scheduled task -bash:crontab:command?
Metal equipment 5 phantom pain white screen can not enter the game how to do
Search for hidden files under XP
The disappearing "Start" button can be replaced with Win+X shortcuts
Ghost repair U disk boot disk process
How do I make the Win7 system desktop icon only display icons without displaying text?
Win7 system mouse right click menu background picture how to set?
Windows 8 method of opening God mode
Windows7 can not play World of Warcraft solution
How to set HTML document as screen saver under WinXP
What should I do if the win10 taskbar does not respond to black bars?