Install CONFIG. js on Windows

Source: Internet
Author: User

About node. js

Simply put, node. JS is the JavaScript that runs on the server. node. JS is a JAVASCRIPT runtime environment based on the Chrome V8 engine. node. JS uses an event-driven, non-blocking I/O model to make it lightweight and efficient. node. JS's Package Manager, NPM, is the world's largest open source library ecosystem.

Download

https://nodejs.org/

Environment configuration

Description: The environment configuration here is primarily configured with the path of the global module where NPM is installed, and the path of the cache caches, which is to be configured as follows: NPM install express [-G] (the following optional parameter-G, G for the installation statement of global installation, the installed module is installed in the "C:users User name appdataroamin\npm" path, which occupies the space of C disk.

For example, if you want to place the full module path and the cache path in the D:\nodejs folder, you need to create two subfolders "Node_global" and "Node_cache" such as:

After creating two empty folders, open the cmd command window and enter

NPM config set prefix "D:\nodejs\node_global"

NPM config set cache "D:\nodejs\node_cache"

Next, set the environment variable

Check the node. JS version

If you are not sure if you have node. js installed on your computer, or if you are unsure of the version number, you can use the following command on the line:

Node-v

Installing common Components Vue-cli

Vue is the official tool for quickly creating projects.

npm install vue-cli -g

This article refers to:

Worth looking at the installation configuration of Nodejs

Install CONFIG. js on Windows

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.