Nodejs+express installation Configuration (Linux version)

Source: Internet
Author: User

Under Ubuntu, directly from the source to install Nodejs, this version is OK, but the related express, etc., will be older.

The use of source installation, first download Nodejs source code, and then three steps:

./

There may be permissions problems, just use sudo.

Installing Express is tricky, first installing Express:

NPM Install Express

The new version is also going to install another thing:

sudo npm install-g express-generator

In this case, Express is complete and express-v can see the version.

However, the creation of the project, the direct introduction of the express test, is problematic, it should be that express is not added to the environment variables.

So the test, or the need to create a project with Express, then, in the project, NPM install-d, Express will be redeployed to the project.

To test later, first create a package.json that will introduce express to the inside. This way, for the case of no network. It's a bit of egg ache.

Nodejs+express installation Configuration (Linux version)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.